function StringEqualsConcatenatedValuesConstraint::__construct
Constructs a StringEqualsConcatenatedValuesConstraint object.
Attributes
Parameters
array|null $options: The options (as associative array) or the value for the default option (any other type)
string|null $separator: The separator separating the values.
array|null $values: The mappings to values to concatenate together.
array|null $reservedCharacters: Reserved characters — if any — that are to be substituted in each value.
string|null $reservedCharactersSubstitute: Any reserved characters that will be substituted by this character.
string $message: The error message if the string does not match.
array|null $groups: An array of validation groups.
mixed|null $payload: Domain-specific data attached to a constraint.
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ StringEqualsConcatenatedValuesConstraint.php, line 42
Class
- StringEqualsConcatenatedValuesConstraint
- Checks a string consists of specific values found in the mapping.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public function __construct(?array $options = NULL, public ?string $separator = NULL, public ?array $values = NULL, public ?array $reservedCharacters = [], public ?string $reservedCharactersSubstitute = NULL, public string $message = "Expected '@expected_string', not '@value'. Format: '@expected_format'.", ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.