Back to SiteApplication class

Method getRouter

public static \Joomla\CMS\Router\Router
getRouter
(mixed $name = 'site', array $options = array())
Return a reference to the Router object.
Parameters
  • string $name The name of the application.
  • array $options An optional associative array of configuration settings.
Returns
  • \Joomla\CMS\Router\Router
Since
  • 3.2

Method getRouter - Source code

/**
 * Return a reference to the Router object.
 *
 * @param   string  $name     The name of the application.
 * @param   array   $options  An optional associative array of configuration settings.
 *
 * @return	\Joomla\CMS\Router\Router
 *
 * @since	3.2
 */
public static function getRouter($name = 'site', array $options = array())
{
    return parent::getRouter($name, $options);
}