function FileIsImageConstraintValidator::__construct

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

Creates a new FileIsImageConstraintValidator.

Parameters

\Drupal\Core\Image\ImageFactory $imageFactory: The image factory.

File

core/modules/file/src/Plugin/Validation/Constraint/FileIsImageConstraintValidator.php, line 24

Class

FileIsImageConstraintValidator
Validator for the FileIsImageConstraint.

Namespace

Drupal\file\Plugin\Validation\Constraint

Code

public function __construct(ImageFactory $imageFactory) {
}

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