WithRewriteTrait
Trait for elements with rewrite
Table of Contents
Properties
- $rewriteObj : Rewrite|null
Methods
- getControllerUsingRewrite() : BasePage
- return Controller by RouteInfo and App
- getRewrite() : Rewrite|null
- gets object rewrite model
- getRewritePrefix() : string
- gets rewrite prefix
- getTranslations() : array<string|int, mixed>
- returns object translations urls
- getControllerByRouteInfo() : BasePage
- return Controller by RouteInfo and App
Properties
$rewriteObj
protected
Rewrite|null
$rewriteObj
= null
rewrite object
Methods
getControllerUsingRewrite()
return Controller by RouteInfo and App
public
getControllerUsingRewrite(App $app) : BasePage
Parameters
- $app : App
Return values
BasePagegetRewrite()
gets object rewrite model
public
getRewrite() : Rewrite|null
Tags
Return values
Rewrite|nullgetRewritePrefix()
gets rewrite prefix
public
abstract getRewritePrefix() : string
Return values
stringgetTranslations()
returns object translations urls
public
getTranslations() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getControllerByRouteInfo()
return Controller by RouteInfo and App
protected
getControllerByRouteInfo(RouteInfo $routeInfo, App $app) : BasePage