function system_block_view_system_main_block_alter
Same name in other branches
- 9 core/modules/system/system.module \system_block_view_system_main_block_alter()
- 10 core/modules/system/system.module \system_block_view_system_main_block_alter()
- 11.x core/modules/system/system.module \system_block_view_system_main_block_alter()
Implements hook_block_view_BASE_BLOCK_ID_alter().
File
-
core/
modules/ system/ system.module, line 1384
Code
function system_block_view_system_main_block_alter(array &$build, BlockPluginInterface $block) {
// Contextual links on the system_main block would basically duplicate the
// tabs/local tasks, so reduce the clutter.
unset($build['#contextual_links']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.