class OEmbedResourceConstraint extends Constraint (View source)

internal  This is an internal part of the oEmbed system and should only be used by oEmbed-related code in Drupal core.
 

Checks if a value represents a valid oEmbed resource URL.

Properties

string $unknownProviderMessage

The error message if the URL does not match any known provider.

string $disallowedProviderMessage

The error message if the URL matches a disallowed provider.

string $invalidResourceMessage

The error message if the URL is not a valid oEmbed resource.

string $providerErrorMessage

The error message if an unexpected behavior occurs.