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)) {
An exception for terminatinating execution or to throw for unit testing.
static getLanguageCookie()
Retrieve the user-selected language from a cookie.
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.
__construct($config, $reserved)
Initialize this filter.