class DuplicateFieldConstraint in JSON:API Extras 8
Same name and namespace in other branches
- 8.3 src/Plugin/Validation/Constraint/DuplicateFieldConstraint.php \Drupal\jsonapi_extras\Plugin\Validation\Constraint\DuplicateFieldConstraint
- 8.2 src/Plugin/Validation/Constraint/DuplicateFieldConstraint.php \Drupal\jsonapi_extras\Plugin\Validation\Constraint\DuplicateFieldConstraint
The constraint object.
Plugin annotation
@Constraint(
id = "jsonapi_extras__duplicate_field",
label = @Translation("Duplicate field", context = "Validation")
)
Hierarchy
- class \Drupal\jsonapi_extras\Plugin\Validation\Constraint\DuplicateFieldConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of DuplicateFieldConstraint
File
- src/
Plugin/ Validation/ Constraint/ DuplicateFieldConstraint.php, line 15
Namespace
Drupal\jsonapi_extras\Plugin\Validation\ConstraintView source
class DuplicateFieldConstraint extends Constraint {
/**
* The error message for the constraint.
*
* @var string
*/
public $message = 'The override must be unique.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DuplicateFieldConstraint:: |
public | property | The error message for the constraint. |