Skip to content

Commit

Permalink
ECCI-305: Enforce unique name.
Browse files Browse the repository at this point in the history
  • Loading branch information
siliconmeadow committed Jun 8, 2023
1 parent 94cb52b commit ede0b93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Entity/ContentOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
])
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE)
->addConstraint('UniqueField')
->setRequired(TRUE);

$fields['email'] = BaseFieldDefinition::create('email')
Expand Down

0 comments on commit ede0b93

Please sign in to comment.