You are here

public function LanguageHierarchyConfigFactoryOverride::setLanguage in Language Hierarchy 2.x

Same name and namespace in other branches
  1. 8 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\Config

Code

public function setLanguage(LanguageInterface $language = NULL) {
  $this->fallbackChain = $this
    ->getFallbackChainFromConfigEntities($language
    ->getId());
  return parent::setLanguage($language);
}