public function LanguageHierarchyConfigFactoryOverride::setLanguage in Language Hierarchy 8
Same name and namespace in other branches
- 2.x src/Config/LanguageHierarchyConfigFactoryOverride.php \Drupal\language_hierarchy\Config\LanguageHierarchyConfigFactoryOverride::setLanguage()
Sets the language to be used in configuration overrides.
Parameters
\Drupal\Core\Language\LanguageInterface $language: The language object used to override configuration data.
Return value
$this
Overrides LanguageConfigFactoryOverride::setLanguage
File
- src/
Config/ LanguageHierarchyConfigFactoryOverride.php, line 94
Class
- LanguageHierarchyConfigFactoryOverride
- Provides language overrides for the configuration factory, with fallbacks.
Namespace
Drupal\language_hierarchy\ConfigCode
public function setLanguage(LanguageInterface $language = NULL) {
$this->fallbackChain = $this
->getFallbackChainFromConfigEntities($language
->getId());
return parent::setLanguage($language);
}