diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php index 4b7057a..90837f9 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php @@ -86,7 +86,11 @@ * Assumed to be English by default. ConfigEntityStorage will set an * appropriate language when creating new entities. This default applies to * imported default configuration where the language code is missing. Those - * should be assumed to be English. + * should be assumed to be English. All configuration entities support third + * party settings, so even configuration entities that do not directly + * store settings involving text in a human language may have such third + * party settings attached. This means configuration entities should be in one + * of the configured languages or the built-in English. * * @var string */ diff --git a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php index 992f698..6904110 100644 --- a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php +++ b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @@ -243,7 +243,7 @@ public function testToArray() { 'id' => 'test_entity_type.test_bundle.field_test', 'uuid' => NULL, 'status' => TRUE, - 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED, + 'langcode' => 'en', 'field_name' => 'field_test', 'entity_type' => 'test_entity_type', 'bundle' => 'test_bundle', diff --git a/core/modules/rdf/src/Entity/RdfMapping.php b/core/modules/rdf/src/Entity/RdfMapping.php index 3e97d63..577cbe7 100644 --- a/core/modules/rdf/src/Entity/RdfMapping.php +++ b/core/modules/rdf/src/Entity/RdfMapping.php @@ -9,7 +9,6 @@ use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\EntityStorageInterface; -use Drupal\Core\Language\LanguageInterface; use Drupal\rdf\RdfMappingInterface; /** @@ -27,15 +26,6 @@ class RdfMapping extends ConfigEntityBase implements RdfMappingInterface { /** - * The language code of the entity's default language. - * - * This entity type does not have translatable elements. - * - * @var string - */ - protected $langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED; - - /** * Unique ID for the config entity. * * @var string