function FileImageDimensionsConstraintValidator::__construct
Same name in other branches
- 10 core/modules/file/src/Plugin/Validation/Constraint/FileImageDimensionsConstraintValidator.php \Drupal\file\Plugin\Validation\Constraint\FileImageDimensionsConstraintValidator::__construct()
Creates a new FileImageDimensionsConstraintValidator.
Parameters
\Drupal\Core\Image\ImageFactory $imageFactory: The image factory.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileImageDimensionsConstraintValidator.php, line 30
Class
- FileImageDimensionsConstraintValidator
- Validator for the FileImageDimensionsConstraint.
Namespace
Drupal\file\Plugin\Validation\ConstraintCode
public function __construct(ImageFactory $imageFactory, MessengerInterface $messenger) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.