You are here

function media_theme in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/media.module \media_theme()
  2. 9 core/modules/media/media.module \media_theme()

Implements hook_theme().

File

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

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' => [
        'resource' => NULL,
        'media' => NULL,
        'placeholder_token' => '',
      ],
    ],
    'media_embed_error' => [
      'variables' => [
        'message' => NULL,
        'attributes' => [],
      ],
    ],
  ];
}