function MediaLibraryHooks::theme

Implements hook_theme().

File

core/modules/media_library/src/Hook/MediaLibraryHooks.php, line 101

Class

MediaLibraryHooks
Hook implementations for media_library.

Namespace

Drupal\media_library\Hook

Code

public function theme() : array {
    return [
        'media__media_library' => [
            'base hook' => 'media',
        ],
        'media_library_wrapper' => [
            'render element' => 'element',
        ],
        'media_library_item' => [
            'render element' => 'element',
        ],
    ];
}

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