You are here

class VideoEmbedConstraint in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Validation/Constraint/VideoEmbedConstraint.php \Drupal\video_embed_field\Plugin\Validation\Constraint\VideoEmbedConstraint

Validation constraint for the video embed field.

Plugin annotation


@Constraint(
  id = "VideoEmbedValidation",
  label = @Translation("VideoEmbed provider constraint", context = "Validation"),
)

Hierarchy

  • class \Drupal\video_embed_field\Plugin\Validation\Constraint\VideoEmbedConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of VideoEmbedConstraint

1 file declares its use of VideoEmbedConstraint
ConstraintTest.php in tests/src/Kernel/ConstraintTest.php

File

src/Plugin/Validation/Constraint/VideoEmbedConstraint.php, line 15

Namespace

Drupal\video_embed_field\Plugin\Validation\Constraint
View source
class VideoEmbedConstraint extends Constraint {

  /**
   * Message shown when a video provider is not found.
   *
   * @var string
   */
  public $message = 'Could not find a video provider to handle the given URL.';

}

Members

Namesort descending Modifiers Type Description Overrides
VideoEmbedConstraint::$message public property Message shown when a video provider is not found.