summaryrefslogtreecommitdiffstats
path: root/core/modules/content_moderation/src/Entity
diff options
context:
space:
mode:
authorAlex Pott2017-02-12 21:21:11 (GMT)
committerAlex Pott2017-02-12 21:21:11 (GMT)
commit2a55d2d98a9465d974f90ecfc2491ef00d229458 (patch)
tree7765c687c8c96152763fc60a8f6fd2f5aa39066c /core/modules/content_moderation/src/Entity
parente4ae1c1af2574466fbb2be6b482138ec4fb04f3d (diff)
Issue #2781907 by timmillwood, Sam152: Remove unnecessary constraint from moderation state transition validation
Diffstat (limited to 'core/modules/content_moderation/src/Entity')
-rw-r--r--core/modules/content_moderation/src/Entity/ContentModerationState.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/modules/content_moderation/src/Entity/ContentModerationState.php b/core/modules/content_moderation/src/Entity/ContentModerationState.php
index d60dad7..6d5b39c 100644
--- a/core/modules/content_moderation/src/Entity/ContentModerationState.php
+++ b/core/modules/content_moderation/src/Entity/ContentModerationState.php
@@ -68,8 +68,7 @@ class ContentModerationState extends ContentEntityBase implements ContentModerat
->setDescription(t('The moderation state of the referenced content.'))
->setRequired(TRUE)
->setTranslatable(TRUE)
- ->setRevisionable(TRUE)
- ->addConstraint('ModerationState', []);
+ ->setRevisionable(TRUE);
$fields['content_entity_type_id'] = BaseFieldDefinition::create('string')
->setLabel(t('Content entity type ID'))