EntityFieldUniqueValues
Checks if an entity field has duplicate values.
- Full name:
\Drupal\helper\Plugin\Validation\Constraint\EntityFieldUniqueValues - Parent class:
\Drupal\helper\Plugin\Validation\Constraint\FieldListUniqueValues
Properties
field_name
The field name to validate.
public string $field_name
This is a constraint option set by name, so it keeps its snake_case name for backwards compatibility with existing configuration.
Methods
getDefaultOption
{@inheritdoc}
public getDefaultOption(): ?string
getRequiredOptions
{@inheritdoc}
public getRequiredOptions(): array