FileNameLengthConstraint::$messageTooLong

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

The message when file name is too long.

Type: string

File

core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraint.php, line 38

Class

FileNameLengthConstraint
File name length constraint.

Namespace

Drupal\file\Plugin\Validation\Constraint

Code

public string $messageTooLong = "The file's name exceeds the %maxLength characters limit. Rename the file and try again.";

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