function entity_browser_theme in Entity Browser 8.2
Same name and namespace in other branches
- 8 entity_browser.module \entity_browser_theme()
Implements hook_theme().
Overrides the core html theme to use a custom template for iframes.
File
- ./
entity_browser.module, line 43 - Allows to flexibly create, browse and select entities.
Code
function entity_browser_theme() {
return [
'html__entity_browser__iframe' => [
'template' => 'html--entity-browser--iframe',
'render element' => 'html',
'preprocess functions' => [
'template_preprocess_html',
],
],
'html__entity_browser__modal' => [
'template' => 'html--entity-browser--iframe',
'render element' => 'html',
'preprocess functions' => [
'template_preprocess_html',
],
],
'page__entity_browser__iframe' => [
'template' => 'page--entity-browser--iframe',
'render element' => 'html',
'preprocess functions' => [
'template_preprocess_page',
],
],
'page__entity_browser__modal' => [
'template' => 'page--entity-browser--iframe',
'render element' => 'html',
'preprocess functions' => [
'template_preprocess_page',
],
],
];
}