public function VideoFilterBase::options in Video Filter 8
Embed options. (e.g. Autoplay, Width/Height).
Uses Drupal's Form API.
Overrides VideoFilterInterface::options
13 calls to VideoFilterBase::options()
- Coub::options in src/
Plugin/ VideoFilter/ Coub.php - Embed options. (e.g. Autoplay, Width/Height).
- DailyMotion::options in src/
Plugin/ VideoFilter/ DailyMotion.php - Embed options. (e.g. Autoplay, Width/Height).
- FlickrSlideshows::options in src/
Plugin/ VideoFilter/ FlickrSlideshows.php - Embed options. (e.g. Autoplay, Width/Height).
- GameVideos::options in src/
Plugin/ VideoFilter/ GameVideos.php - Embed options. (e.g. Autoplay, Width/Height).
- MailRu::options in src/
Plugin/ VideoFilter/ MailRu.php - Embed options. (e.g. Autoplay, Width/Height).
16 methods override VideoFilterBase::options()
- Coub::options in src/
Plugin/ VideoFilter/ Coub.php - Embed options. (e.g. Autoplay, Width/Height).
- DailyMotion::options in src/
Plugin/ VideoFilter/ DailyMotion.php - Embed options. (e.g. Autoplay, Width/Height).
- ExampleCodec::options in modules/
video_filter_example/ src/ Plugin/ VideoFilter/ ExampleCodec.php - Embed options. (e.g. Autoplay, Width/Height).
- FlickrSlideshows::options in src/
Plugin/ VideoFilter/ FlickrSlideshows.php - Embed options. (e.g. Autoplay, Width/Height).
- GameVideos::options in src/
Plugin/ VideoFilter/ GameVideos.php - Embed options. (e.g. Autoplay, Width/Height).
File
- src/
VideoFilterBase.php, line 90
Class
- VideoFilterBase
- Defines base methods for all video filter plugin instances.
Namespace
Drupal\video_filterCode
public function options() {
$form['width'] = [
'#title' => $this
->t('Width (optional)'),
'#type' => 'textfield',
'#attributes' => [
'placeholder' => '400',
],
];
$form['height'] = [
'#title' => $this
->t('Height (optional)'),
'#type' => 'textfield',
'#attributes' => [
'placeholder' => '400',
],
];
return $form;
}