function OEmbedResourceConstraint::__construct
Attributes
#[HasNamedArguments]
File
-
core/
modules/ media/ src/ Plugin/ Validation/ Constraint/ OEmbedResourceConstraint.php, line 24
Class
- OEmbedResourceConstraint
- Checks if a value represents a valid oEmbed resource URL.
Namespace
Drupal\media\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public $unknownProviderMessage = 'The given URL does not match any known oEmbed providers.', public $disallowedProviderMessage = 'Sorry, the @name provider is not allowed.', public $invalidResourceMessage = 'The provided URL does not represent a valid oEmbed resource.', public $providerErrorMessage = 'An error occurred while trying to retrieve the oEmbed provider database.', ?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.