CoreFiles by mySites.guru
BasicButton.php52 lines, 1,089 bytes, from Joomla_5.0.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 4.4.0-alpha4
md5
e799ea58efbb411e55cc6173c43ea526
sha1
6717f622f2cfcb4cf9a552d4a89c37f635f06889
sha256
f9155590e5ce39e47d0b8870d775a4f3d879180a461849c87e9ba830aa276c52
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Toolbar\Button;

use Joomla\CMS\Toolbar\ToolbarButton;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * 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  4.3 will be removed in 6.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 116 releases, Joomla 5.0.0-alpha1 to 6.0.0. See them all, or every version of this file.