You are here

class VideoFilter in Video Filter 8

Same name in this branch
  1. 8 src/Controller/VideoFilter.php \Drupal\video_filter\Controller\VideoFilter
  2. 8 src/Annotation/VideoFilter.php \Drupal\video_filter\Annotation\VideoFilter
  3. 8 src/Plugin/Filter/VideoFilter.php \Drupal\video_filter\Plugin\Filter\VideoFilter
  4. 8 src/Plugin/CKEditorPlugin/VideoFilter.php \Drupal\video_filter\Plugin\CKEditorPlugin\VideoFilter

Defines a Video Filter codec annotation object.

Plugin Namespace: Plugin\video_filter\VideoFilter.

Hierarchy

Expanded class hierarchy of VideoFilter

See also

\Drupal\video_filter\Plugin\VideoFilterManager

Plugin API

39 classes are annotated with VideoFilter
ArchiveOrg in src/Plugin/VideoFilter/ArchiveOrg.php
Provides ArchiveOrg codec for Video Filter.
Brightcove in src/Plugin/VideoFilter/Brightcove.php
Provides Brightcove codec for Video Filter.
Capped in src/Plugin/VideoFilter/Capped.php
Provides Capped codec for Video Filter.
CollegeHumor in src/Plugin/VideoFilter/CollegeHumor.php
Provides CollegeHumor codec for Video Filter.
Coub in src/Plugin/VideoFilter/Coub.php
Provides Coub codec for Video Filter.

... See full list

File

src/Annotation/VideoFilter.php, line 17

Namespace

Drupal\video_filter\Annotation
View source
class VideoFilter extends Plugin {

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

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

  /**
   * The example URL.
   *
   * @var url
   */
  public $example_url;

  /**
   * Regular expressions to match the video.
   *
   * @var array of regexp
   */
  public $regexp = [];

  /**
   * The video player ratio.
   *
   * @var float
   */
  public $ratio;

  /**
   * The video player control bar height.
   *
   * @var int
   */
  public $control_bar_height;

}

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
VideoFilter::$control_bar_height public property The video player control bar height.
VideoFilter::$example_url public property The example URL.
VideoFilter::$id public property The plugin ID.
VideoFilter::$name public property The name of the codec.
VideoFilter::$ratio public property The video player ratio.
VideoFilter::$regexp public property Regular expressions to match the video.