21 parent::__construct(
$config, $reserved);
22 assert(
'is_array($config)');
24 if (array_key_exists(
'attributename',
$config)) {
25 $this->langattr =
$config[
'attributename'];
38 assert(
'is_array($request)');
39 assert(
'array_key_exists("Attributes", $request)');
56 if (isset($attrlang) && !isset(
$lang)) {
59 } elseif (!isset($attrlang) && isset(
$lang)) {
__construct($config, $reserved)
Initialize this filter.
static getLanguageCookie()
Retrieve the user-selected language from a cookie.
Create styles array
The data for the language used.
static setLanguageCookie($language)
This method will attempt to set the user-selected language in a cookie.
process(&$request)
Apply filter to add or replace attributes.