diff -u b/core/modules/language/lib/Drupal/language/Config/LanguageConfigFactoryOverride.php b/core/modules/language/lib/Drupal/language/Config/LanguageConfigFactoryOverride.php --- b/core/modules/language/lib/Drupal/language/Config/LanguageConfigFactoryOverride.php +++ b/core/modules/language/lib/Drupal/language/Config/LanguageConfigFactoryOverride.php @@ -151,7 +151,7 @@ /** * Creates a configuration collection name based on a langcode. * - * @param $langcode + * @param string $langcode * The langcode. * * @return string diff -u b/core/modules/language/lib/Drupal/language/Config/LanguageConfigOverride.php b/core/modules/language/lib/Drupal/language/Config/LanguageConfigOverride.php --- b/core/modules/language/lib/Drupal/language/Config/LanguageConfigOverride.php +++ b/core/modules/language/lib/Drupal/language/Config/LanguageConfigOverride.php @@ -37,19 +37,12 @@ * {@inheritdoc} */ public function save() { - // Validate the configuration object name before saving. - static::validateName($this->name); - - // If there is a schema for this configuration object, cast all values to - // conform to the schema. - if ($this->typedConfigManager->hasConfigSchema($this->name)) { - // Ensure that the schema wrapper has the latest data. - $this->schemaWrapper = NULL; - foreach ($this->data as $key => $value) { - $this->data[$key] = $this->castValue($key, $value); - } + // @todo Use configuration schema to validate. + // https://drupal.org/node/2270399 + // Perform basic data validation. + foreach ($this->data as $key => $value) { + $this->validateValue($key, $value); } - $this->storage->write($this->name, $this->data); $this->isNew = FALSE; $this->originalData = $this->data; @@ -60,7 +53,6 @@ * {@inheritdoc} */ public function delete() { - // @todo Consider to remove the pruning of data for Config::delete(). $this->data = array(); $this->storage->delete($this->name); $this->isNew = TRUE; diff -u b/core/modules/language/lib/Drupal/language/ConfigurableLanguageManagerInterface.php b/core/modules/language/lib/Drupal/language/ConfigurableLanguageManagerInterface.php --- b/core/modules/language/lib/Drupal/language/ConfigurableLanguageManagerInterface.php +++ b/core/modules/language/lib/Drupal/language/ConfigurableLanguageManagerInterface.php @@ -97,7 +97,7 @@ public function getLanguageConfigOverride($langcode, $name); /** - * Gets a language config override storage object. + * Gets a language configuration override storage object. * * @param string $langcode * The language code for the override. only in patch2: unchanged: --- a/core/lib/Drupal/Core/Config/Config.php +++ b/core/lib/Drupal/Core/Config/Config.php @@ -237,7 +237,6 @@ public function save() { * The configuration object. */ public function delete() { - // @todo Consider to remove the pruning of data for Config::delete(). $this->data = array(); $this->storage->delete($this->name); $this->isNew = TRUE;