function FileUriUnique::__construct
Same name and namespace in other branches
- 11.x core/modules/file/src/Plugin/Validation/Constraint/FileUriUnique.php \Drupal\file\Plugin\Validation\Constraint\FileUriUnique::__construct()
Constructs a UniqueFieldConstraint object.
Parameters
bool $caseSensitive: This constraint is case-insensitive by default. For example, "FOO" and "foo" would be considered as equivalent, and validation of the constraint would fail.
string $message: The error message.
array|null $groups: The groups that the constraint belongs to.
mixed|null $payload: Domain-specific data attached to a constraint.
Overrides UniqueFieldConstraint::__construct
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileUriUnique.php, line 19
Class
- FileUriUnique
- Supports validating file URIs.
Namespace
Drupal\file\Plugin\Validation\ConstraintCode
public function __construct(bool $caseSensitive = TRUE, $message = 'The file %value already exists. Enter a unique file URI.', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($caseSensitive, $message, $groups, $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.