Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HelpHooks.php

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\Hook

Code

public function blockViewHelpBlockAlter(array &$build, BlockPluginInterface $block) : void {
    // 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']);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal