diff --git a/core/core.api.php b/core/core.api.php index f500ded..fc42a72 100644 --- a/core/core.api.php +++ b/core/core.api.php @@ -313,7 +313,7 @@ * you will instead need to get the Config object by making a call to * getEditable() on the config factory: * @code - * $config =\Drupal::service('config.factory')->getEditable('system.performance'); + * $config =\Drupal::service('config.factory')->getEditable('mymodule.foo'); * @endcode * Configuration is changed or added using the set() method and saved using the * save() method: @@ -328,7 +328,7 @@ * which is also chainable: * @code * $config->clear('bar.boo')->save(); - * $config_data = $config->get('bar.boo'); + * $config_data = $config->get('bar'); * @endcode * In this example $config_data would return an array with one key - 'baz' - * because 'boo' was unset.