diff --git a/core/core.api.php b/core/core.api.php index 2a0d4a0..9db1a1f 100644 --- a/core/core.api.php +++ b/core/core.api.php @@ -285,11 +285,9 @@ * configuration file structure, file name, and schema of your settings (see * @ref sec_yaml above). To change configuration you will need to get an * instance of Config by making a call to - * \Drupal\Core\Config\Config::getEditable() on the config factory. - * You can do so like this: - * Create an object of class \Drupal\Core\Config\Config, which has methods - * for getting and setting configuration information. For instance, if your - * YAML file structure looks like this: + * \Drupal\Core\Config\Config::getEditable() on the config factory. This class + * has methods for getting and setting configuration information. + * For instance, if your YAML file structure looks like this: * @code * enabled: '0' * bar: @@ -298,15 +296,13 @@ * @endcode * you can make calls such as: * @code + * $config = \Drupal::service('config.factory')->getEditable('mymodule.foo'); * // Get a single value. * $enabled = $config->get('enabled'); * // Get an associative array. * $bar = $config->get('bar'); * // Get one element of the array. * $bar_baz = $config->get('bar.baz'); - * - * @code - * $config = \Drupal::service('config.factory')->getEditable('mymodule.foo'); * @endcode * * Individual configuration values can be unset using the clear() function,