commit f92c9f8a5842258713c4bd6c0746afb2c7125765 Author: fago Date: Wed Feb 27 11:00:05 2013 +0100 Start diff --git a/core/lib/Drupal/Core/Config/TypedConfigManager.php b/core/lib/Drupal/Core/Config/TypedConfigManager.php index 4a8a289..38d9bde 100644 --- a/core/lib/Drupal/Core/Config/TypedConfigManager.php +++ b/core/lib/Drupal/Core/Config/TypedConfigManager.php @@ -12,6 +12,9 @@ /** * Manages config type plugins. + * + * Extends the typed data manager to process config schema definitions to + * regular typed data definitions before instances are created. */ class TypedConfigManager extends TypedDataManager { @@ -54,16 +57,18 @@ public function get($name) { /** * Overrides \Drupal\Core\TypedData\TypedDataManager::create() * - * Fills in default type and does variable replacement. + * Takes a config schema definition and processes it to a regular typed data + * definition before creation, i.e. it fills in default type and does variable + * replacement. */ public function create(array $definition, $value = NULL, $name = NULL, $parent = NULL) { if (!isset($definition['type'])) { - // Set default type 'string' if possible. If not it will be 'undefined'. + // Set default type 'string' if possible. If not it will be 'any'. if (is_string($value)) { $definition['type'] = 'string'; } else { - $definition['type'] = 'undefined'; + $definition['type'] = 'any'; } } elseif (strpos($definition['type'], ']')) {