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

Breadcrumb

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

Choice::ERROR_NAMES

Overrides Constraint::ERROR_NAMES

File

vendor/symfony/validator/Constraints/Choice.php, line 28

Class

Choice
Validates that a value is one of a given set of valid choices.

Namespace

Symfony\Component\Validator\Constraints

Code

protected const ERROR_NAMES = [
    self::NO_SUCH_CHOICE_ERROR => 'NO_SUCH_CHOICE_ERROR',
    self::TOO_FEW_ERROR => 'TOO_FEW_ERROR',
    self::TOO_MANY_ERROR => 'TOO_MANY_ERROR',
];

API Navigation

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