diff --git a/core/lib/Drupal/Core/Config/Schema/ArrayElement.php b/core/lib/Drupal/Core/Config/Schema/ArrayElement.php index 847135ebb1d56560bd4d179712c468fe03c5553f..1b314ac3b4bc590751a6d41261c47d529befae36 100644 --- a/core/lib/Drupal/Core/Config/Schema/ArrayElement.php +++ b/core/lib/Drupal/Core/Config/Schema/ArrayElement.php @@ -98,18 +98,6 @@ public function get($name) { } } - /** - * {@inheritdoc} - */ - public function set($key, $value) { - $this->value[$key] = $value; - // Parsed elements must be rebuilt with new values - unset($this->elements); - // Directly notify ourselves. - $this->onChange($key, $value); - return $this; - } - /** * {@inheritdoc} */ diff --git a/core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php b/core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php index 0847df0472d90e141fe7676d452e34277157bc0b..05305602e0d684a4d1f99266c722aa8faac18e94 100644 --- a/core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php +++ b/core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php @@ -53,18 +53,6 @@ public function getElements(); */ public function get($name); - /** - * Replaces the item at the specified position in this list. - * - * @param int|string $key - * Property name or index of the item to replace. - * @param mixed $value - * Value to be stored at the specified position. - * - * @return $this - */ - public function set($key, $value); - /** * Returns an array of all property values. * diff --git a/core/modules/config/src/Tests/ConfigSchemaTest.php b/core/modules/config/src/Tests/ConfigSchemaTest.php index 37adff0e54fe2b15425789c2685caec8befd2386..ca53a53cead3cfe7e7a7deabc16d05fb38ee3cb7 100644 --- a/core/modules/config/src/Tests/ConfigSchemaTest.php +++ b/core/modules/config/src/Tests/ConfigSchemaTest.php @@ -315,13 +315,6 @@ function testSchemaData() { $this->assertTrue(!$effect['data']->isEmpty() && $effect['id']->getValue() == 'image_scale', 'Got data for the image scale effect from metadata.'); $this->assertTrue($effect['data']->get('width') instanceof IntegerInterface, 'Got the right type for the scale effect width.'); $this->assertEqual($effect['data']->get('width')->getValue(), 480, 'Got the right value for the scale effect width.' ); - - // Finally update some object using a configuration wrapper. - $new_slogan = 'Site slogan for testing configuration metadata'; - $wrapper = \Drupal::service('config.typed')->get('system.site'); - $wrapper->set('slogan', $new_slogan); - $site_slogan = $wrapper->get('slogan'); - $this->assertEqual($site_slogan->getValue(), $new_slogan, 'Successfully updated the contained configuration data'); } /**