LengthConstraint.php in Zircon Profile 8
File
core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/LengthConstraint.php
View source
<?php
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraints\Length;
class LengthConstraint extends Length {
public $maxMessage = 'This value is too long. It should have %limit character or less.|This value is too long. It should have %limit characters or less.';
public $minMessage = 'This value is too short. It should have %limit character or more.|This value is too short. It should have %limit characters or more.';
public $exactMessage = 'This value should have exactly %limit character.|This value should have exactly %limit characters.';
public function validatedBy() {
return '\\Symfony\\Component\\Validator\\Constraints\\LengthValidator';
}
}