diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php index 17792b5..f2a5dfc 100644 --- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php +++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php @@ -72,13 +72,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setCardinality(1) ->setReadOnly(TRUE); - $fields['status'] = BaseFieldDefinition::create('boolean') - ->setLabel(t('Publishing status')) - ->setDescription(t('A boolean indicating whether the entity is published.')) - ->setRevisionable(TRUE) - ->setTranslatable(TRUE) - ->setDefaultValue(TRUE); - return $fields; } diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRevWithBundle.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRevWithBundle.php index 3157c58..3a5443d 100644 --- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRevWithBundle.php +++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRevWithBundle.php @@ -50,4 +50,20 @@ */ class EntityTestRevWithBundle extends EntityTestRev { + /** + * {@inheritdoc} + */ + public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { + $fields = parent::baseFieldDefinitions($entity_type); + + $fields['status'] = BaseFieldDefinition::create('boolean') + ->setLabel(t('Publishing status')) + ->setDescription(t('A boolean indicating whether the entity is published.')) + ->setRevisionable(TRUE) + ->setTranslatable(TRUE) + ->setDefaultValue(TRUE); + + return $fields; + } + }