function SystemHooks::systemInfoAlter
Implements hook_system_info_alter().
File
-
core/
modules/ system/ src/ Hook/ SystemHooks.php, line 304
Class
- SystemHooks
- Hook implementations for system.
Namespace
Drupal\system\HookCode
public function systemInfoAlter(&$info, Extension $file, $type) {
// Remove page-top and page-bottom from the blocks UI since they are reserved for
// modules to populate from outside the blocks system.
if ($type == 'theme') {
$info['regions_hidden'][] = 'page_top';
$info['regions_hidden'][] = 'page_bottom';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.