class FileUriUnique
Same name in other branches
- 9 core/modules/file/src/Plugin/Validation/Constraint/FileUriUnique.php \Drupal\file\Plugin\Validation\Constraint\FileUriUnique
- 8.9.x 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.
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 12
Namespace
Drupal\file\Plugin\Validation\ConstraintView source
class FileUriUnique extends SymfonyConstraint {
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.