class VideoEmbeddableProvider in Video 8
Same name and namespace in other branches
- 8.2 src/Annotation/VideoEmbeddableProvider.php \Drupal\video\Annotation\VideoEmbeddableProvider
Defines a VideoEmbeddableProvider item annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\video\Annotation\VideoEmbeddableProvider
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 = { "/^https?:\/\/(www\.)?vimeo.com\/(?<id>[0-9]*)/", }, mimetype =…
- 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 =…
File
- src/
Annotation/ VideoEmbeddableProvider.php, line 12
Namespace
Drupal\video\AnnotationView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
VideoEmbeddableProvider:: |
public | property | A brief description of the plugin. | |
VideoEmbeddableProvider:: |
public | property | The plugin ID. | |
VideoEmbeddableProvider:: |
public | property | The label of the plugin. | |
VideoEmbeddableProvider:: |
public | property | A mimetype of the plugin. | |
VideoEmbeddableProvider:: |
public | property | List of regular expressions that match embed codes and URLs of videos. | |
VideoEmbeddableProvider:: |
public | property | A stream_wrapper to use in the plugin. |