CoreFiles by mySites.guru
Dispatcher.php41 lines, 914 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
883d21ea2a543c9d8f4c8a89553c13ae
sha1
fbfe3204e78c3ed2bbd0e55789aed55c5c1c640d
sha256
54b1cc67b5e27057ae400889312fa921181438674c4e11eaa01879c524cd5c28
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  mod_frontend
 *
 * @copyright   (C) 2024 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Module\Frontend\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_frontend
 *
 * @since  5.1.0
 */
class Dispatcher extends AbstractModuleDispatcher
{
    /**
     * Returns the layout data.
     *
     * @return  array
     *
     * @since   5.1.0
     */
    protected function getLayoutData()
    {
        $data = parent::getLayoutData();

        $data['sitename'] = htmlspecialchars($this->getApplication()->get('sitename', ''), ENT_QUOTES, 'UTF-8');

        return $data;
    }
}

The same content is in 133 releases, Joomla 5.1.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.