我想在每个页面上附加一个树枝模板。
在Drupal 7的,我们基本上都采用hook_page_alter
HOOK_page_alter in Drupal 8
function hook_page_alter(&$page) {
$page['page_bottom']['devel']= array(
'#type' => 'markup',
'#markup' => '<div style="clear:both;">' . theme('TEST') . '</div>',
); // add test template on every page at bottom position.
}
但在Drupal 8没有hook_page_alter
我认为其追加。
如何在drupal 8中做到这一点?你需要的是在这里