FrontendPageTrait
Frontend pages Trait
Table of Contents
Methods
- getCurrentLocale() : string
- {@inheritdoc}
- getRouteGroup() : string|null
- gets route group
- getTemplateData() : array<string|int, mixed>
- {@inheritdoc}
- getTranslations() : array<string|int, mixed>
- {@inheritdoc}
- alterTemplateName() : string
- eventually alters template name
- check2FA() : bool
- checks if 2FA is passed
- checkCredentials() : bool
- checks user credentials
Methods
getCurrentLocale()
{@inheritdoc}
public
getCurrentLocale() : string
Tags
Return values
stringgetRouteGroup()
gets route group
public
static getRouteGroup() : string|null
Return values
string|nullgetTemplateData()
{@inheritdoc}
public
getTemplateData() : array<string|int, mixed>
Return values
array<string|int, mixed>getTranslations()
{@inheritdoc}
public
getTranslations() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>alterTemplateName()
eventually alters template name
protected
alterTemplateName(string $templateName) : string
Parameters
- $templateName : string
Tags
Return values
stringcheck2FA()
checks if 2FA is passed
protected
check2FA() : bool
Return values
boolcheckCredentials()
checks user credentials
protected
checkCredentials() : bool