function MediaMappingsConstraint::__construct
Attributes
#[HasNamedArguments]
File
-
core/
modules/ media/ src/ Plugin/ Validation/ Constraint/ MediaMappingsConstraint.php, line 22
Class
- MediaMappingsConstraint
- Validates media mappings.
Namespace
Drupal\media\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public string $invalidMappingMessage = 'It is not possible to map the source field @source_field_name of a media type.', ?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.