You are here

public function Coub::options in Video Filter 8

Embed options. (e.g. Autoplay, Width/Height).

Uses Drupal's Form API.

Overrides VideoFilterBase::options

File

src/Plugin/VideoFilter/Coub.php, line 43

Class

Coub
Provides Coub codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function options() {
  $form = parent::options();
  $form['autoplay'] = [
    '#title' => $this
      ->t('Autoplay (optional)'),
    '#type' => 'checkbox',
  ];
  $form['originalSize'] = [
    '#title' => $this
      ->t('Show original size (optional)'),
    '#type' => 'checkbox',
  ];
  $form['startWithHD'] = [
    '#title' => $this
      ->t('Start with HD (optional)'),
    '#type' => 'checkbox',
  ];
  $form['muted'] = [
    '#title' => $this
      ->t('Muted (optional)'),
    '#type' => 'checkbox',
  ];
  return $form;
}