Commit 2a55d2d9 authored by alexpott's avatar alexpott

Issue #2781907 by timmillwood, Sam152: Remove unnecessary constraint from...

Issue #2781907 by timmillwood, Sam152: Remove unnecessary constraint from moderation state transition validation
parent e4ae1c1a
......@@ -68,8 +68,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->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'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment