/** * {@inheritDoc} */ public function form(PhpRenderer $view, array $options = []) { $urlInput = new UrlElement('o:media[__index__][o:source]'); $urlInput->setOptions(['label' => $view->translate('oEmbed URL'), 'info' => $view->translate('URL for the media to embed.')]); $urlInput->setAttributes(['id' => 'media-oembed-source-__index__', 'required' => true]); return $view->formRow($urlInput); }
/** * {@inheritDoc} */ public function form(PhpRenderer $view, array $options = []) { $urlInput = new UrlElement('o:media[__index__][ingest_url]'); $urlInput->setOptions(['label' => $view->translate('URL'), 'info' => $view->translate('A URL to the media.')]); $urlInput->setAttributes(['id' => 'media-url-ingest-url-__index__', 'required' => true]); return $view->formRow($urlInput); }
/** * {@inheritDoc} */ public function form(PhpRenderer $view, array $options = []) { $urlInput = new UrlElement('o:media[__index__][o:source]'); $urlInput->setOptions(['label' => $view->translate('Video URL'), 'info' => $view->translate('URL for the video to embed.')]); $urlInput->setAttributes(['id' => 'media-youtube-source-__index__', 'required' => true]); $urlInput->setAttributes(['id' => 'media-youtube-source-__index__', 'required' => true]); $startInput = new Text('o:media[__index__][start]'); $startInput->setOptions(['label' => $view->translate('Start'), 'info' => $view->translate('Begin playing the video at the given number of seconds from the start of the video.')]); $endInput = new Text('o:media[__index__][end]'); $endInput->setOptions(['label' => $view->translate('End'), 'info' => $view->translate('End playing the video at the given number of seconds from the start of the video.')]); return $view->formRow($urlInput) . $view->formRow($startInput) . $view->formRow($endInput); }
public function form(PhpRenderer $view, array $options = []) { $urlInput = new UrlElement('o:media[__index__][o:source]'); $urlInput->setOptions(['label' => $view->translate('IIIF Image URL'), 'info' => $view->translate('URL for the image to embed.')]); return $view->formRow($urlInput); }