function gridstack_theme in GridStack 8
Same name and namespace in other branches
- 8.2 gridstack.module \gridstack_theme()
Implements hook_theme().
File
- ./
gridstack.module, line 11 - Provides GridStack integration to have multi-column grids with drag-and-drop.
Code
function gridstack_theme() {
$themes = [];
foreach ([
'gridstack',
'box',
'admin',
'dummy',
'preview',
] as $item) {
$key = $item == 'gridstack' ? $item : 'gridstack_' . $item;
$themes[$key] = [
'render element' => $item == 'preview' ? 'content' : 'element',
'file' => 'templates/gridstack.theme.inc',
];
}
return $themes;
}