public function Twitch::options in Video Filter 8
Embed options. (e.g. Autoplay, Width/Height).
Uses Drupal's Form API.
Overrides VideoFilterBase::options
File
- src/
Plugin/ VideoFilter/ Twitch.php, line 43
Class
- Twitch
- Provides Twitch codec for Video Filter.
Namespace
Drupal\video_filter\Plugin\VideoFilterCode
public function options() {
$form = parent::options();
$form['time'] = [
'#title' => $this
->t('Time (optional)'),
'#type' => 'textfield',
'#description' => $this
->t('Start time'),
];
$form['autoplay'] = [
'#title' => $this
->t('Autoplay (optional)'),
'#type' => 'checkbox',
];
return $form;
}