function bootstrap4_modal_theme in Bootstrap 4 Modal 8
Same name and namespace in other branches
- 2.x bootstrap4_modal.module \bootstrap4_modal_theme()
Implements hook_theme().
Overrides the core html theme to use a custom template for iframes.
File
- ./
bootstrap4_modal.module, line 36 - Contains bootstrap4_modal.module.
Code
function bootstrap4_modal_theme() {
return [
'html__entity_browser__bootstrap4_iframe' => [
'template' => 'html--entity-browser--bootstrap4-modal--iframe',
'render element' => 'html',
'preprocess functions' => [
'template_preprocess_html',
],
],
'html__entity_browser__bootstrap4_modal' => [
'template' => 'html--entity-browser--bootstrap4-modal--iframe',
'render element' => 'html',
'preprocess functions' => [
'template_preprocess_html',
],
],
'page__entity_browser__bootstrap4_iframe' => [
'template' => 'page--entity-browser--bootstrap4-modal--iframe',
'render element' => 'html',
'preprocess functions' => [
'template_preprocess_page',
],
],
'page__entity_browser__bootstrap4_modal' => [
'template' => 'page--entity-browser--bootstrap4-modal--iframe',
'render element' => 'html',
'preprocess functions' => [
'template_preprocess_page',
],
],
];
}