Skip to content

Commit

Permalink
Merge pull request #9 from essexcountycouncil/bugfix/ECCI-305_unique_…
Browse files Browse the repository at this point in the history
…name_reqd

ECCI-305: Enforce unique name.
  • Loading branch information
siliconmeadow authored Jun 9, 2023
2 parents 94cb52b + ede0b93 commit 4f98504
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 4f98504

Please sign in to comment.