CoreFiles by mySites.guru
BasicButton.php47 lines, 904 bytes, from Joomla_4.0.0-alpha11-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha10
md5
365bb8e988930a05a859787975c7f171
sha1
4f93cd64ce3b5b5b348a006c63d5fe3f22d87129
sha256
d14a84f6c0398ab21c536b25f3477d3e5f3b23da314d753f4c8daa45fe4f64aa
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Toolbar\Button;

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Toolbar\ToolbarButton;

/**
 * Renders a basic button.
 *
 * @since  4.0.0
 */
class BasicButton extends ToolbarButton
{
	/**
	 * Property layout.
	 *
	 * @var  string
	 *
	 * @since  4.0.0
	 */
	protected $layout = 'joomla.toolbar.basic';

	/**
	 * Fetch the HTML for the button
	 *
	 * @param   string  $type  Unused string.
	 *
	 * @return  void
	 *
	 * @since   3.0
	 *
	 * @deprecated  5.0 Use render() instead.
	 * @throws  \LogicException
	 */
	public function fetchButton($type = 'Basic')
	{
		throw new \LogicException('This is a new button in 4.0, please use render() instead.');
	}
}

The same content is in 5 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha11. See them all, or every version of this file.