RouteConfig
Namespace
IO\Helper
Type | Name | Value | Description |
---|---|---|---|
|
'basket' |
||
|
'cancellation-rights' |
||
|
'cancellation-form' |
||
|
'category' |
||
|
'change-mail' |
||
|
'checkout' |
||
|
'confirmation' |
||
|
'contact' |
||
|
'home' |
||
|
'item' |
||
|
'legal-disclosure' |
||
|
'login' |
||
|
'my-account' |
||
|
'newsletter-opt-in' |
||
|
'newsletter-opt-out' |
||
|
'order-document' |
||
|
'order-property-file' |
||
|
'order-return' |
||
|
'order-return-confirmation' |
||
|
'password-reset' |
||
|
'place-order' |
||
|
'privacy-policy' |
||
|
'register' |
||
|
'search' |
||
|
'gtc' |
||
|
'wish-list' |
||
|
'page-not-found' |
||
|
'tags' |
||
|
['basket','cancellation-rights','cancellation-form','category','change-mail','checkout','confirmation','contact','home','item','legal-disclosure','login','my-account','newsletter-opt-in','newsletter-opt-out','order-document','order-property-file','order-return','order-return-confirmation','password-reset','place-order','privacy-policy','register','search','tags','gtc','wish-list','page-not-found'] |
Type | Name | Description |
---|---|---|
|
||
|
Methods
public static getEnabledRoutes():array
Get all enabled routes from the plugin config.
public static isActive($route):bool
Check if a route is enabled and no category is linked for this page.
Type |
Name |
Description |
|
The route to check active state for. |
public static getCategoryId($route):int
Get the id of the category linked to a specific route.
Type |
Name |
Description |
|
The route to get the linked category id for. |
public static overrideCategoryId($route, $categoryId)
Override the currently linked category id for a specific route.
Type |
Name |
Description |
|
The route to override the linked category for. |
|
|
The id of the category to override. |
public static passThroughBlogRoutes():bool
Check if blog routes should be recognized by the route service provider or not.