function HelpHooks::blockViewHelpBlockAlter
Implements hook_block_view_BASE_BLOCK_ID_alter().
File
-
core/
modules/ help/ src/ Hook/ HelpHooks.php, line 114
Class
- HelpHooks
- Hook implementations for help.
Namespace
Drupal\help\HookCode
public function blockViewHelpBlockAlter(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.