function media_theme

Same name in other branches
  1. 9 core/modules/media/media.module \media_theme()
  2. 10 core/modules/media/media.module \media_theme()
  3. 11.x core/modules/media/media.module \media_theme()

Implements hook_theme().

File

core/modules/media/media.module, line 69

Code

function media_theme() {
    return [
        'media' => [
            'render element' => 'elements',
        ],
        'media_reference_help' => [
            'render element' => 'element',
            'base hook' => 'field_multiple_value_form',
        ],
        'media_oembed_iframe' => [
            'variables' => [
                'media' => NULL,
                'placeholder_token' => '',
            ],
        ],
        'media_embed_error' => [
            'variables' => [
                'message' => NULL,
                'attributes' => [],
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.