$this->
validateValue($key,
$value);
} } $this->storage->
write($this->name,
$this->data
);
// Invalidate the cache tags not only when updating, but also when creating,
// because a language config override object uses the same cache tag as the
// default configuration object. Hence creating a language override is like
// an update of configuration, but only for a specific language.
Cache::
invalidateTags($this->
getCacheTags());
$this->isNew = FALSE;
$this->eventDispatcher->
dispatch(new LanguageConfigOverrideCrudEvent($this), LanguageConfigOverrideEvents::SAVE_OVERRIDE
);
$this->originalData =
$this->data;
return $this;
} /**
* {@inheritdoc}
*/
public function delete() { $this->data =
[];
$this->storage->
delete($this->name
);
Cache::
invalidateTags($this->
getCacheTags());