CoreFiles by mySites.guru
Dispatcher.php45 lines, 1,083 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
891e4c7c8f8a2c1685819938be0b8703
sha1
0c05c8071bb039ce4d1be1473cdd9db5c374a1df
sha256
941aca11009346b534d1732d0204c6fb10e3204f0b0c5a68dd1b80dec6c6844c
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  mod_title
 *
 * @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\Title\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_title
 *
 * @since  5.1.0
 */
class Dispatcher extends AbstractModuleDispatcher
{
    /**
     * Returns the layout data.
     *
     * @return  array
     *
     * @since   5.1.0
     */
    protected function getLayoutData()
    {
        $data = parent::getLayoutData();

        // Get the component title div
        // @deprecated 5.2.0 will be removed in 7.0 as this property is not used anymore see WebApplication
        if (isset($this->getApplication()->JComponentTitle)) {
            $data['title'] = $this->getApplication()->JComponentTitle;
        }

        return $data;
    }
}

The same content is in 117 releases, Joomla 5.2.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.