function help_block_view_help_block_alter
Same name in other branches
- 8.9.x core/modules/help/help.module \help_block_view_help_block_alter()
- 10 core/modules/help/help.module \help_block_view_help_block_alter()
- 11.x core/modules/help/help.module \help_block_view_help_block_alter()
Implements hook_block_view_BASE_BLOCK_ID_alter().
File
-
core/
modules/ help/ help.module, line 75
Code
function help_block_view_help_block_alter(array &$build, BlockPluginInterface $block) {
// Assume that most users do not need or want to perform contextual actions on
// the help block, so don't needlessly draw attention to it.
unset($build['#contextual_links']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.