Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Length.php

Length::ERROR_NAMES

Overrides Constraint::ERROR_NAMES

File

vendor/symfony/validator/Constraints/Length.php, line 31

Class

Length
Validates that a given string length is between some minimum and maximum value.

Namespace

Symfony\Component\Validator\Constraints

Code

protected const ERROR_NAMES = [
    self::TOO_SHORT_ERROR => 'TOO_SHORT_ERROR',
    self::TOO_LONG_ERROR => 'TOO_LONG_ERROR',
    self::NOT_EQUAL_LENGTH_ERROR => 'NOT_EQUAL_LENGTH_ERROR',
    self::INVALID_CHARACTERS_ERROR => 'INVALID_CHARACTERS_ERROR',
];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal