CountConstraint.php in Zircon Profile 8.0
File
core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/CountConstraint.php
View source
<?php
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraints\Count;
class CountConstraint extends Count {
public $minMessage = 'This collection should contain %limit element or more.|This collection should contain %limit elements or more.';
public $maxMessage = 'This collection should contain %limit element or less.|This collection should contain %limit elements or less.';
public $exactMessage = 'This collection should contain exactly %limit element.|This collection should contain exactly %limit elements.';
public function validatedBy() {
return '\\Symfony\\Component\\Validator\\Constraints\\CountValidator';
}
}