function layout_theme in Layout 8.2
Implements hook_theme().
Expose all layouts as theme items, so themes can override layout markup.
File
- ./
layout.module, line 37 - Manages page layouts for content presentation.
Code
function layout_theme($existing, $type, $theme, $path) {
$items = array();
foreach (Drupal::service('plugin.manager.layout')
->getDefinitions() as $name => $layout) {
$items[$layout['theme']] = array(
'variables' => array(
'content' => NULL,
),
'path' => $layout['path'],
'template' => $layout['template'],
);
}
return $items;
}