function FileValidationConstraintValidator::__construct

Same name in other branches
  1. 11.x core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraintValidator::__construct()

Creates a new FileValidationConstraintValidator.

Parameters

\Drupal\file\Validation\FileValidatorInterface $fileValidator: The file validator.

File

core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php, line 23

Class

FileValidationConstraintValidator
Checks that a file referenced in a file field is valid.

Namespace

Drupal\file\Plugin\Validation\Constraint

Code

public function __construct(FileValidatorInterface $fileValidator) {
}

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