function FileValidator::__construct

Same name in other branches
  1. 10 core/modules/file/src/Validation/FileValidator.php \Drupal\file\Validation\FileValidator::__construct()

Creates a new FileValidator.

Parameters

\Symfony\Component\Validator\Validator\ValidatorInterface $validator: The validator.

\Drupal\Core\Validation\ConstraintManager $constraintManager: The constraint factory.

\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

File

core/modules/file/src/Validation/FileValidator.php, line 29

Class

FileValidator
Provides a class for file validation.

Namespace

Drupal\file\Validation

Code

public function __construct(ValidatorInterface $validator, ConstraintManager $constraintManager, EventDispatcherInterface $eventDispatcher, ModuleHandlerInterface $moduleHandler) {
}

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