FileExtensionConstraint::$message

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

The error message.

Type: string

File

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

Class

FileExtensionConstraint
File extension constraint.

Namespace

Drupal\file\Plugin\Validation\Constraint

Code

public string $message = 'Only files with the following extensions are allowed: %files-allowed.';

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