Documentation

functions.php

Table of Contents

t()  : string|null
_t()  : mixed
_allowed()  : bool

Functions

t()

t(string $key[, string|null $alternative = null ][, string|null $lang = null ]) : string|null
Parameters
$key : string
$alternative : string|null = null
$lang : string|null = null
Return values
string|null

_t()

_t(string $key[, array<string|int, mixed> $params = [] ][, string|null $alternative = null ][, string|null $lang = null ]) : mixed
Parameters
$key : string
$params : array<string|int, mixed> = []
$alternative : string|null = null
$lang : string|null = null
Return values
mixed

_allowed()

_allowed(string $permission[, string|null $role = null ]) : bool
Parameters
$permission : string
$role : string|null = null
Return values
bool

Search results