JComponentRouterBase

Implements \JComponentRouterInterface

Base component routing class

abstract
since

3.3

package

Joomla.Libraries

Methods

__construct

Class constructor.

__construct(\JApplicationCms $app = null, \JMenu $menu = null) 
since

3.4

Arguments

$app

\JApplicationCmsApplication-object that the router should use

$menu

\JMenuMenu-object that the router should use

preprocess

Generic method to preprocess a URL

preprocess(array $query) : array

For example it can add the Itemid or set a language parameter. This method is executed on each URL, regardless of SEF mode switched on or not.

since

3.3

Arguments

$query

arrayAn associative array of URL arguments

Response

arrayThe URL arguments to use to assemble the subsequent URL.

Properties

app

Application object to use in the router

menu

Menu object to use in the router

Type(s)

\JMenu