diff --git a/core/lib/Drupal/Core/Config/TypedConfigManager.php b/core/lib/Drupal/Core/Config/TypedConfigManager.php index 24b6366..2416947 100644 --- a/core/lib/Drupal/Core/Config/TypedConfigManager.php +++ b/core/lib/Drupal/Core/Config/TypedConfigManager.php @@ -151,15 +151,16 @@ public function clearCachedDefinitions() { } /** - * Gets fallback metadata name. + * Gets fallback configuration schema name. * * @param string $name * Configuration name or key. * * @return null|string - * Same name with the last part(s) replaced by the filesystem marker. - * for example, breakpoint.breakpoint.module.toolbar.narrow check for - * definitions in the following order: + * The resolved schema name for the given configuration name or key. Returns + * null if there is no schema name to fallback to. For example, + * breakpoint.breakpoint.module.toolbar.narrow will check for definitions in + * the following order: * breakpoint.breakpoint.module.toolbar.* * breakpoint.breakpoint.module.*.* * breakpoint.breakpoint.module.* @@ -168,14 +169,12 @@ public function clearCachedDefinitions() { * breakpoint.*.*.*.* * breakpoint.* * Colons are also used, for example, - * block.settings.system_menu_block:footer check will for definitions in the + * block.settings.system_menu_block:footer will check for definitions in the * following order: * block.settings.system_menu_block* * block.settings.* * block.*.* * block.* - * - * Returns null, if no matching element. */ protected function getFallbackName($name) { // Check for definition of $name with filesystem marker. diff --git a/core/modules/config/src/Tests/ConfigSchemaTest.php b/core/modules/config/src/Tests/ConfigSchemaTest.php index 010ea19..5e8f47b 100644 --- a/core/modules/config/src/Tests/ConfigSchemaTest.php +++ b/core/modules/config/src/Tests/ConfigSchemaTest.php @@ -398,9 +398,11 @@ function testSchemaFallback() { } /** - * Tests use of schema_type_resolver to determine schema.. + * Tests use of colons in schema type determination. + * + * @see \Drupal\Core\Config\TypedConfigManager::getFallbackName() */ - function testSchemaTypeResolver() { + function testColonsInSchemaTypeDetermination() { $tests = \Drupal::service('config.typed')->get('config_schema_test.plugin_types')->get('tests'); $definition = $tests[0]->getDataDefinition()->toArray(); $this->assertEqual($definition['type'], 'test.plugin_types.boolean');