SiteRouterAwareTrait

Defines the trait for a Site Router Aware Class.

since

4.2.0

package

Joomla CMS

Methods

getSiteRouter

Get the site router.

getSiteRouter() : \Joomla\CMS\Router\SiteRouter
since

4.2.0

throws

\UnexpectedValueExceptionMay be thrown if the router has not been set.

Response

\Joomla\CMS\Router\SiteRouter

setSiteRouter

Set the router to use.

setSiteRouter(\Joomla\CMS\Router\SiteRouter router) : void
since

4.2.0

Arguments

router

\Joomla\CMS\Router\SiteRouterThe router to use.

Properties

router

since

4.2.0

Type(s)

SiteRouter