function gin_lb_theme in Gin Layout Builder 1.0.x
Implements hook_theme().
File
- ./
gin_lb.module, line 713 - Provides hooks for gin_lb module.
Code
function gin_lb_theme($existing, $type, $theme, $path) {
$overwritten_themes = gin_lb_overwritten_themes();
$themes = [];
foreach ($overwritten_themes as $overwritten_theme) {
$overwritten_hook_ary = explode('/', str_replace('-', '_', $overwritten_theme));
$overwritten_hook = $overwritten_hook_ary[count($overwritten_hook_ary) - 1];
$overwritten_base_hook = explode('--', $overwritten_hook)[0];
$themes[$overwritten_hook . '__gin_lb'] = [
'template' => $overwritten_theme . '--gin-lb',
'base hook' => $overwritten_base_hook,
];
}
$themes['form__layout_builder_form__gin_lb'] = [
'template' => 'form/form--layout-builder-form--gin-lb',
'base hook' => 'form',
];
return $themes;
}