class FileIsImageConstraint

Same name and namespace in other branches
  1. 11.x core/modules/file/src/Plugin/Validation/Constraint/FileIsImageConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileIsImageConstraint

File is image constraint.

Hierarchy

  • class \Drupal\file\Plugin\Validation\Constraint\FileIsImageConstraint implements \Symfony\Component\Validator\Constraint

Expanded class hierarchy of FileIsImageConstraint

File

core/modules/file/src/Plugin/Validation/Constraint/FileIsImageConstraint.php, line 14

Namespace

Drupal\file\Plugin\Validation\Constraint
View source
class FileIsImageConstraint extends SymfonyConstraint {
  
  /**
   * The error message.
   *
   * @var string
   */
  public string $message = 'The image file is invalid or the image type is not allowed. Allowed types: %types';

}

Members

Title Sort descending Modifiers Object type Summary
FileIsImageConstraint::$message public property The error message.

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