class FileValidationConstraint

Same name in other branches
  1. 9 core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraint
  2. 10 core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraint
  3. 11.x core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraint

Validation File constraint.

Plugin annotation


@Constraint(
  id = "FileValidation",
  label = @Translation("File Validation", context = "Validation")
)

Hierarchy

  • class \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of FileValidationConstraint

File

core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraint.php, line 15

Namespace

Drupal\file\Plugin\Validation\Constraint
View source
class FileValidationConstraint extends Constraint {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.