AppGlobal
class AppGlobal
A twig global that provides information about the app
Methods
Get the controller handling the request
Get the environment of the kernel
Find out whether the kernel has enabled debugging
Find out whether maintenance mode is enabled for users of the website
Get the name of the website
Get the name of the website
Get the name of the website
Whether or not the website wide alert is enabled
Should the alert be collapsible
The title of the alert
The message of the alert
The type of URLs for Models
A unique enough identifier of the alert
Get information about sockets
Details
at line line 30
__construct(Controller $controller, ContainerInterface $container)
Create new AppGlobal
at line line 41
Controller
getController()
Get the controller handling the request
at line line 51
string
getEnvironment()
Get the environment of the kernel
at line line 61
bool
isDebug()
Find out whether the kernel has enabled debugging
at line line 71
bool
isMaintenance()
Find out whether maintenance mode is enabled for users of the website
at line line 81
string
getSiteTitle()
Get the name of the website
at line line 91
string
getSiteWelcome()
Get the name of the website
at line line 101
string
getSiteSlug()
Get the name of the website
at line line 111
bool
isAlertEnabled()
Whether or not the website wide alert is enabled
at line line 121
bool
isAlertCollapsible()
Should the alert be collapsible
at line line 131
string
getAlertHeader()
The title of the alert
at line line 141
string
getAlertMessage()
The message of the alert
at line line 151
string
getUrlType()
The type of URLs for Models
at line line 161
string
getAlertID()
A unique enough identifier of the alert
at line line 171
array
getSocket()
Get information about sockets
at line line 186
Page[]
getPages()
Get a list of visible pages