MenuRules
Implements RulesInterfaceRule to identify the right Itemid for a view in a component
since |
3.4 |
---|---|
package |
Joomla CMS |
Methods
__construct
Class constructor.
__construct(\Joomla\CMS\Component\Router\RouterView router) : mixed
since |
3.4 |
---|
Arguments
- router
\Joomla\CMS\Component\Router\RouterView
Router this rule belongs to
Response
mixed
build
Dummy method to fulfil the interface requirements
build(array &query, array &segments) : void
since |
3.4 |
---|
Arguments
- query
array
The vars that should be converted- segments
array
The URL segments to create
buildLookup
Method to build the lookup array
buildLookup(string language = '*') : void
since |
3.4 |
---|
Arguments
- language
string
The language that the lookup should be built up for
parse
Dummy method to fulfil the interface requirements
parse(array &segments, array &vars) : void
since |
3.4 |
---|
Arguments
- segments
array
The URL segments to parse- vars
array
The vars that result from the segments
preprocess
Finds the right Itemid for this query
preprocess(array &query) : void
since |
3.4 |
---|
Arguments
- query
array
The query array to process