diff --git a/core/config/schema/core.menu.schema.yml b/core/config/schema/core.menu.schema.yml index 069ec19..1a6c268 100644 --- a/core/config/schema/core.menu.schema.yml +++ b/core/config/schema/core.menu.schema.yml @@ -1,5 +1,5 @@ core.menu.static_menu_link_overrides: - type: mapping + type: config_object label: 'Static menu link overrides' mapping: definitions: diff --git a/core/modules/config/src/Tests/ConfigImportUITest.php b/core/modules/config/src/Tests/ConfigImportUITest.php index 4f3aea5..34d3744 100644 --- a/core/modules/config/src/Tests/ConfigImportUITest.php +++ b/core/modules/config/src/Tests/ConfigImportUITest.php @@ -60,8 +60,8 @@ function testImport() { // Create new config entity. $original_dynamic_data = array( - 'uuid' => '30df59bd-7b03-4cf7-bb35-d42fc49f0651', 'langcode' => \Drupal::languageManager()->getDefaultLanguage()->getId(), + 'uuid' => '30df59bd-7b03-4cf7-bb35-d42fc49f0651', 'status' => TRUE, 'dependencies' => array(), 'id' => 'new', diff --git a/core/modules/config/src/Tests/ConfigSchemaTest.php b/core/modules/config/src/Tests/ConfigSchemaTest.php index cf945d9..214ecbd 100644 --- a/core/modules/config/src/Tests/ConfigSchemaTest.php +++ b/core/modules/config/src/Tests/ConfigSchemaTest.php @@ -96,14 +96,14 @@ function testSchemaMapping() { $expected = array(); $expected['label'] = 'Maintenance mode'; $expected['class'] = '\Drupal\Core\Config\Schema\Mapping'; + $expected['mapping']['langcode'] = array( + 'label' => 'Language code', + 'type' => 'string', + ); $expected['mapping']['message'] = array( 'label' => 'Message to display when in maintenance mode', 'type' => 'text', ); - $expected['mapping']['langcode'] = array( - 'label' => 'Default language', - 'type' => 'string', - ); $expected['type'] = 'system.maintenance'; $expected['definition_class'] = '\Drupal\Core\TypedData\MapDataDefinition'; $this->assertEqual($definition, $expected, 'Retrieved the right metadata for system.maintenance'); @@ -152,11 +152,11 @@ function testSchemaMapping() { $expected['label'] = 'Image style'; $expected['class'] = '\Drupal\Core\Config\Schema\Mapping'; $expected['definition_class'] = '\Drupal\Core\TypedData\MapDataDefinition'; + $expected['mapping']['langcode']['type'] = 'string'; + $expected['mapping']['langcode']['label'] = 'Language code'; $expected['mapping']['name']['type'] = 'string'; $expected['mapping']['uuid']['type'] = 'string'; $expected['mapping']['uuid']['label'] = 'UUID'; - $expected['mapping']['langcode']['type'] = 'string'; - $expected['mapping']['langcode']['label'] = 'Default language'; $expected['mapping']['status']['type'] = 'boolean'; $expected['mapping']['status']['label'] = 'Status'; $expected['mapping']['dependencies']['type'] = 'config_dependencies';