public LanguagesCacheContext::getContext($type = NULL)
$type can be NULL, or one of the language types supported by the language manager, typically:
LanguageInterface::TYPE_INTERFACE LanguageInterface::TYPE_CONTENT LanguageInterface::TYPE_URL
Throws
\RuntimeException In case an invalid language type is specified.
Overrides CalculatedCacheContextInterface::getContext
See also
\Drupal\Core\Language\LanguageManagerInterface::getLanguageTypes()
File
core/lib/Drupal/Core/Cache/Context/Languages