$name =
$this->
t($name);
} $list[PluginBase::VIEWS_QUERY_LANGUAGE_SITE_DEFAULT
] =
$name;
// Remove site default language from $languages so it's not added
// twice with the real languages below.
unset($languages[LanguageInterface::LANGCODE_SITE_DEFAULT
]);
} // Add in negotiated languages, if requested.
if ($flags & PluginBase::INCLUDE_NEGOTIATED
) { $types_info =
$manager->
getDefinedLanguageTypesInfo();
$types =
$manager->
getLanguageTypes();
// We only go through the configured types.
foreach ($types as $id) { if (isset($types_info[$id]['name'
])) { $name =
$types_info[$id]['name'
];
// Surround IDs by '***LANGUAGE_...***', to avoid query collisions.
$id = '***LANGUAGE_' .
$id . '***';
$list[$id] =
$this->
t('@type language selected for page',
['@type' =>
$name]);
} } if (!
empty($current_values)) { foreach ($types_info as $id =>
$type) {