class FileUriUnique
Same name in other branches
- 8.9.x core/modules/file/src/Plugin/Validation/Constraint/FileUriUnique.php \Drupal\file\Plugin\Validation\Constraint\FileUriUnique
- 10 core/modules/file/src/Plugin/Validation/Constraint/FileUriUnique.php \Drupal\file\Plugin\Validation\Constraint\FileUriUnique
- 11.x core/modules/file/src/Plugin/Validation/Constraint/FileUriUnique.php \Drupal\file\Plugin\Validation\Constraint\FileUriUnique
Supports validating file URIs.
Plugin annotation
@Constraint(
id = "FileUriUnique",
label = @Translation("File URI", context = "Validation")
)
Hierarchy
- class \Drupal\file\Plugin\Validation\Constraint\FileUriUnique extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of FileUriUnique
1 string reference to 'FileUriUnique'
- File::baseFieldDefinitions in core/
modules/ file/ src/ Entity/ File.php
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileUriUnique.php, line 15
Namespace
Drupal\file\Plugin\Validation\ConstraintView source
class FileUriUnique extends Constraint {
public $message = 'The file %value already exists. Enter a unique file URI.';
/**
* {@inheritdoc}
*/
public function validatedBy() {
return '\\Drupal\\Core\\Validation\\Plugin\\Validation\\Constraint\\UniqueFieldValueValidator';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FileUriUnique::$message | public | property | |
FileUriUnique::validatedBy | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.