diff --git a/core/lib/Drupal/Core/Config/DrupalConfig.php b/core/lib/Drupal/Core/Config/DrupalConfig.php index ed927bc56f4..514eb63a297 100644 --- a/core/lib/Drupal/Core/Config/DrupalConfig.php +++ b/core/lib/Drupal/Core/Config/DrupalConfig.php @@ -170,9 +170,8 @@ class DrupalConfig { * * @param $key * @todo - * */ - public function unset($key) { + public function clear($key) { $parts = explode('.', $key); if (count($parts) == 1) { unset($this->data[$key]); diff --git a/core/modules/image/image.module b/core/modules/image/image.module index 1e61e623a9d..2c0a42a4a69 100644 --- a/core/modules/image/image.module +++ b/core/modules/image/image.module @@ -1017,7 +1017,7 @@ function image_effect_save($style_name, $effect) { */ function image_effect_delete($style_name, $effect) { $config = config('image.styles.' . $style_name); - $config->unset('effects.' . $effect['ieid']); + $config->clear('effects.' . $effect['ieid']); $config->save(); $style = image_style_load($style_name); image_style_flush($style);