You are here

public property UniqueFieldConstraint::$message in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint::message

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldConstraint.php, line 17

Class

UniqueFieldConstraint
Checks if an entity field has a unique value.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

public $message = 'A @entity_type with @field_name %value already exists.';