FileIsImageConstraint::$message

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

The error message.

Type: string

File

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

Class

FileIsImageConstraint
File is image constraint.

Namespace

Drupal\file\Plugin\Validation\Constraint

Code

public string $message = 'The image file is invalid or the image type is not allowed. Allowed types: %types';

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