CoreFiles by mySites.guru
BasicButton.php50 lines, 1,047 bytes, from Joomla_4.3.0-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.3.0-rc1
md5
e7cd0c6db49ef6e731ed77ffe27833f7
sha1
0957ce00120df6768407629206c6394d136fa163
sha256
778b667498bba92ac4f1f53cbb8d5b2e03018e6d11af4a9ab0104430e6698d49
<?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('JPATH_PLATFORM') 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  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 23 releases, Joomla 4.2.1 to 4.3.0-rc2. See them all, or every version of this file.