CoreFiles by mySites.guru
Dispatcher.php42 lines, 1,009 bytes, from Joomla_4.3.0-Stable-Full_Package.zip
Raw History Compare with 4.2.9
md5
268e11d68dffa0cbda5383f64663fd01
sha1
9287c6244722702a3c39b2a4c1026b0df4ad4188
sha256
5423e193cd0c13c27c3ed85afc0a1a1e49b8b80d48552f9e5eca75efbe017d15
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  mod_quickicon
 *
 * @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\Module\Quickicon\Administrator\Dispatcher;

use Joomla\CMS\Dispatcher\AbstractModuleDispatcher;

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

/**
 * Dispatcher class for mod_quickicon
 *
 * @since  4.0.0
 */
class Dispatcher extends AbstractModuleDispatcher
{
    /**
     * Returns the layout data.
     *
     * @return  array
     *
     * @since   4.0.0
     */
    protected function getLayoutData()
    {
        $data = parent::getLayoutData();

        $helper          = $this->app->bootModule('mod_quickicon', 'administrator')->getHelper('QuickIconHelper');
        $data['buttons'] = $helper->getButtons($data['params'], $this->getApplication());

        return $data;
    }
}

The same content is in 12 releases, Joomla 4.3.0-rc1 to 4.3.4. See them all, or every version of this file.