You are here

function media_entity_soundcloud_theme in Media entity Soundcloud 8

Same name and namespace in other branches
  1. 8.2 media_entity_soundcloud.module \media_entity_soundcloud_theme()
  2. 3.x media_entity_soundcloud.module \media_entity_soundcloud_theme()

Implements hook_theme().

File

./media_entity_soundcloud.module, line 11
Contains media_entity_soundcloud.module.

Code

function media_entity_soundcloud_theme($existing, $type, $theme, $path) {
  return [
    'media_soundcloud_embed' => [
      'variables' => [
        'track_id' => NULL,
        'width' => NULL,
        'height' => NULL,
        'type' => NULL,
        'options' => [],
      ],
      'file' => 'media_entity_soundcloud.theme.inc',
    ],
  ];
}