function FileUriUnique::__construct
Attributes
#[HasNamedArguments]
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(mixed $options = NULL, ?bool $caseSensitive = NULL, $message = 'The file %value already exists. Enter a unique file URI.', ?array $groups = NULL, mixed $payload = NULL) {
$this->caseSensitive = $caseSensitive ?? TRUE;
parent::__construct($options, $caseSensitive, $message, $groups, $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.