You are here

public function LanguageHierarchyConfigOverride::save in Language Hierarchy 2.x

Same name and namespace in other branches
  1. 8 src/Config/LanguageHierarchyConfigOverride.php \Drupal\language_hierarchy\Config\LanguageHierarchyConfigOverride::save()

Saves the configuration object.

Must invalidate the cache tags associated with the configuration object.

Parameters

bool $has_trusted_data: Set to TRUE if the configuration data has already been checked to ensure it conforms to schema. Generally this is only used during module and theme installation.

Return value

$this

Overrides LanguageConfigOverride::save

See also

\Drupal\Core\Config\ConfigInstaller::createConfiguration()

File

src/Config/LanguageHierarchyConfigOverride.php, line 60

Class

LanguageHierarchyConfigOverride
Defines language configuration overrides.

Namespace

Drupal\language_hierarchy\Config

Code

public function save($has_trusted_data = FALSE) {

  // Swap storage used by the save method.
  $source_storage = $this->storage;
  $this->storage = $this->target_storage;
  parent::save($has_trusted_data);

  // Restore source storage.
  $this->storage = $source_storage;
  return $this;
}