diff --git a/core/lib/Drupal/Core/Config/Config.php b/core/lib/Drupal/Core/Config/Config.php index 533c24a..a743442 100644 --- a/core/lib/Drupal/Core/Config/Config.php +++ b/core/lib/Drupal/Core/Config/Config.php @@ -625,8 +625,8 @@ protected function castValue($key, $value) { } } catch (SchemaIncompleteException $e) { - // @todo throw an exception due to an incomplete schema. Only possible - // once https://drupal.org/node/1910624 is complete. + // @todo throw an exception due to an incomplete schema. + // Fix as part of https://drupal.org/node/2183983. } } else { diff --git a/core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php b/core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php index 9fa2493..b16f038 100644 --- a/core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php @@ -21,7 +21,7 @@ use Drupal\Core\TypedData\Type\IntegerInterface; /** - * + * Tests default configuration availability and type with configuration schema. */ class DefaultConfigTest extends DrupalUnitTestBase { @@ -79,7 +79,7 @@ public function testDefaultConfig() { $default_config_storage = new TestInstallStorage(); foreach ($default_config_storage->listAll() as $config_name) { - // @todo: remove once migration and + // @todo: remove once migration (https://drupal.org/node/2183957) and // translation (https://drupal.org/node/2168609) schemas are in. if (strpos($config_name, 'migrate.migration') === 0 || strpos($config_name, 'language.config') === 0) { continue; @@ -113,10 +113,13 @@ public function testDefaultConfig() { /** * Helper method to check data type. * - * @param $key - * @param $value + * @param string $key + * A string of configuration key. + * @param mixed $value + * Value of given key. * - * @return array + * @return mixed + * Returns mixed value. */ protected function checkValue($key, $value) { if (is_scalar($value) || $value === NULL) { diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php index e6ab912..c940422 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php @@ -10,6 +10,8 @@ use Drupal\Core\Config\InstallStorage; /** + * Tests configuration of profiles, modules and themes. + * * A test configuration storage to read configuration from all profiles, modules * and themes regardless of installation status or installed profile. */ diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php index e62720f..4a599fd 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php @@ -10,6 +10,8 @@ use Drupal\Core\Config\Schema\SchemaStorage; /** + * Tests configuration schemas of profiles, modules and themes. + * * A test configuration schema storage to read configuration schema from all * profiles, modules and themes regardless of installation status or installed * profile. diff --git a/core/modules/content_translation/config/schema/content_translation.views.schema.yml b/core/modules/content_translation/config/schema/content_translation.views.schema.yml index c60e4a4..03dfc1a 100644 --- a/core/modules/content_translation/config/schema/content_translation.views.schema.yml +++ b/core/modules/content_translation/config/schema/content_translation.views.schema.yml @@ -1,4 +1,4 @@ -# Schema for the views plugins of the Views module. +# Schema for the views plugins of the Content Translation module. views.field.content_translation_link: type: views_field diff --git a/core/modules/entity/config/schema/entity.schema.yml b/core/modules/entity/config/schema/entity.schema.yml index ba30475..a5c7da8 100644 --- a/core/modules/entity/config/schema/entity.schema.yml +++ b/core/modules/entity/config/schema/entity.schema.yml @@ -116,7 +116,7 @@ entity.form_display.*.*.*: type: boolean label: 'Enabled' -# Default schemas, as no type for hidden. +# Default schema for entity display field with undefined type. entity_display.field.*: type: mapping label: 'Entity display default' @@ -128,6 +128,7 @@ entity_display.field.*: type: integer label: 'Weight' +# Default schema for entity form display field with undefined type. entity_form_display.field.*: type: mapping label: 'Entity form display default' diff --git a/core/modules/node/config/schema/node.views.schema.yml b/core/modules/node/config/schema/node.views.schema.yml index 4d6ab2c..0852a80 100644 --- a/core/modules/node/config/schema/node.views.schema.yml +++ b/core/modules/node/config/schema/node.views.schema.yml @@ -255,4 +255,4 @@ views.row.node_rss: label: 'Display type' links: type: boolean - label: 'Display links' \ No newline at end of file + label: 'Display links' diff --git a/core/modules/rest/config/schema/rest.schema.yml b/core/modules/rest/config/schema/rest.schema.yml index b6afddc..b9cb652 100644 --- a/core/modules/rest/config/schema/rest.schema.yml +++ b/core/modules/rest/config/schema/rest.schema.yml @@ -23,7 +23,6 @@ rest_resource: PATCH: type: rest_request label: 'PATCH method settings' - DELETE: type: rest_request label: 'DELETE method settings' diff --git a/core/modules/system/config/schema/system.schema.yml b/core/modules/system/config/schema/system.schema.yml index d77bb95..5dbdcbf 100644 --- a/core/modules/system/config/schema/system.schema.yml +++ b/core/modules/system/config/schema/system.schema.yml @@ -485,4 +485,4 @@ system.theme.disabled: label: 'Disabled themes' sequence: - type: string - label: 'Theme' \ No newline at end of file + label: 'Theme'