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) :
build
Dummy method to fulfil the interface requirements
build(mixed||string|int &query, mixed||string|int &segments) :
| since |
3.4 |
|---|
Arguments
- query
array<string|int, mixed>The vars that should be converted- segments
array<string|int, mixed>The URL segments to create
Response
void
buildLookup
Method to build the lookup array
buildLookup( language = '*') :
| since |
3.4 |
|---|
Arguments
- language
stringThe language that the lookup should be built up for
Response
void
parse
Dummy method to fulfil the interface requirements
parse(mixed||string|int &segments, mixed||string|int &vars) :
| since |
3.4 |
|---|
Arguments
- segments
array<string|int, mixed>The URL segments to parse- vars
array<string|int, mixed>The vars that result from the segments
Response
void
preprocess
Finds the right Itemid for this query
preprocess(mixed||string|int &query) :
| since |
3.4 |
|---|
Arguments
- query
array<string|int, mixed>The query array to process
Response
void
Properties
lookup
Lookup array of the menu items
| since |
3.4 |
|---|
Type(s)
array<string|int, mixed>