You are here

class SelectOtherAllowedValuesConstraint in CCK Select Other 8

Overrides AllowedValuesConstraint.

This exists simply to override AllowedValuesConstraint plugin, which is a poor method of field validation that is not extendable in any way for field widgets.

Core plugins are "internal", which means any code inside a plugin cannot be relied upon at all because of the backwards-incompatibility policy, and all code in core plugins needs to be preserved to maintain backwards- compatibility.

Hierarchy

Expanded class hierarchy of SelectOtherAllowedValuesConstraint

File

src/Validation/Plugin/Validation/Constraint/SelectOtherAllowedValuesConstraint.php, line 19

Namespace

Drupal\cck_select_other\Validation\Plugin\Validation\Constraint
View source
class SelectOtherAllowedValuesConstraint extends Choice {
  public $minMessage = 'You must select at least %limit choice.|You must select at least %limit choices.';
  public $maxMessage = 'You must select at most %limit choice.|You must select at most %limit choices.';
  public $strict = TRUE;

}

Members