You are here

function youtube_theme in YouTube Field 8

Same name and namespace in other branches
  1. 7 youtube.module \youtube_theme()

Implements hook_theme().

2 string references to 'youtube_theme'
template_preprocess_youtube_video in ./youtube.module
Prepares variables for the YouTube Video template.
YoutubeSettingsForm::buildForm in src/Form/YoutubeSettingsForm.php
Form constructor.

File

./youtube.module, line 72
Youtube field module adds a field for YouTube videos.

Code

function youtube_theme($existing, $type, $theme, $path) {
  return [
    'youtube_thumbnail' => [
      'variables' => [
        'video_id' => NULL,
        'entity_title' => NULL,
        'image_style' => NULL,
        'image_link' => NULL,
        'image' => NULL,
      ],
    ],
    'youtube_video' => [
      'variables' => [
        'input' => NULL,
        'video_id' => NULL,
        'entity_title' => NULL,
        'settings' => [],
        'alternative_content' => NULL,
      ],
    ],
  ];
}