You are here

class VideoEmbeddableProvider in Video 8.2

Same name and namespace in other branches
  1. 8 src/Annotation/VideoEmbeddableProvider.php \Drupal\video\Annotation\VideoEmbeddableProvider

Defines a VideoEmbeddableProvider item annotation object.

Hierarchy

Expanded class hierarchy of VideoEmbeddableProvider

6 classes are annotated with VideoEmbeddableProvider
Dailymotion in src/Plugin/video/Provider/Dailymotion.php
Plugin annotation @VideoEmbeddableProvider( id = "dailymotion", label = @Translation("Dailymotion"), description = @Translation("Dailymotion Video Provider"), regular_expressions = { "@dailymotion\.com/video/(?<id>[^/_]+)_@i", }, …
Facebook in src/Plugin/video/Provider/Facebook.php
Plugin annotation @VideoEmbeddableProvider( id = "facebook", label = @Translation("Facebook"), description = @Translation("Facebook Video Provider"), regular_expressions = { "@^https?://www\.facebook\.com/.*(/videos/(?<id>\d+))@i", …
Instagram in src/Plugin/video/Provider/Instagram.php
Plugin annotation @VideoEmbeddableProvider( id = "instagram", label = @Translation("Instagram"), description = @Translation("Instagram Video Provider"), regular_expressions = { "@^.*?instagram\.com\/p\/(?<id>(.*?))[\/]?$@i", }, …
Vimeo in src/Plugin/video/Provider/Vimeo.php
Plugin annotation @VideoEmbeddableProvider( id = "vimeo", label = @Translation("Vimeo"), description = @Translation("Vimeo Video Provider"), regular_expressions = { …
Vine in src/Plugin/video/Provider/Vine.php
Plugin annotation @VideoEmbeddableProvider( id = "vine", label = @Translation("Vine"), description = @Translation("Vine Video Provider"), regular_expressions = { "@(?<=vine.co/v/)(?<id>[0-9A-Za-z]+)@i", }, mimetype =…

... See full list

File

src/Annotation/VideoEmbeddableProvider.php, line 12

Namespace

Drupal\video\Annotation
View source
class VideoEmbeddableProvider extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The label of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * A brief description of the plugin.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation (optional)
   */
  public $description = '';

  /**
   * List of regular expressions that match embed codes and URLs of videos.
   *
   * @var array
   */
  public $regular_expressions = [];

  /**
   * A mimetype of the plugin.
   *
   * @var string
   */
  public $mimetype = '';

  /**
   * A stream_wrapper to use in the plugin.
   *
   * @var string
   */
  public $stream_wrapper = '';

}

Members

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2
VideoEmbeddableProvider::$description public property A brief description of the plugin.
VideoEmbeddableProvider::$id public property The plugin ID.
VideoEmbeddableProvider::$label public property The label of the plugin.
VideoEmbeddableProvider::$mimetype public property A mimetype of the plugin.
VideoEmbeddableProvider::$regular_expressions public property List of regular expressions that match embed codes and URLs of videos.
VideoEmbeddableProvider::$stream_wrapper public property A stream_wrapper to use in the plugin.