Skip to content

FieldListUniqueValues

Checks if a field has duplicate values.


  • Full name: \Drupal\helper\Plugin\Validation\Constraint\FieldListUniqueValues
  • Parent class: Constraint

Properties

message

Message if field contains duplicate values.

public string $message

messageWithValues

Message with values if field contains duplicate values.

public string $messageWithValues

property

The field property to use when searching for values.

public string $property

show_values

If the message should show the field values that are duplicates.

public bool $show_values

This is a constraint option set by name, so it keeps its snake_case name for backwards compatibility with existing configuration.