LayoutController
Namespace
IO\Controllers
Extends
Type | Name | Description |
---|---|---|
|
||
|
||
|
||
|
||
|
||
|
Used by concrete controllers to set the current category |
|
|
||
|
||
|
Methods
public __construct($app, $twig, $event, $categoryRepo, $categoryMap, $categoryService)
LayoutController constructor.
Type |
Name |
Description |
|
||
|
||
|
||
|
||
|
||
|
public abort($code, $message):string
Abort handling current route and pass request to the plentymarkets system
Type |
Name |
Description |
|
||
|
public buildTemplateContainer($templateEvent, $controllerData = []):TemplateContainer
Type |
Name |
Description |
|
||
|
public renderTemplate($templateEvent, $controllerData = [], $cacheContent = true):string
Emit an event to layout plugin to receive twig-template to use for current request.
Type |
Name |
Description |
|
||
|
||
|
public renderTemplateContainer($templateContainer, $controllerData):string
Type |
Name |
Description |
|
||
|
public notFound(): Response
Return a NOT_FOUND response
public checkForExistingCategory($url = null):mixed
Type |
Name |
Description |
|
Thank you for your feedback!