class ToolbarDisableUserToolbarHooks
Hook implementations for toolbar_disable_user_toolbar.
Hierarchy
- class \Drupal\toolbar_disable_user_toolbar\Hook\ToolbarDisableUserToolbarHooks
Expanded class hierarchy of ToolbarDisableUserToolbarHooks
File
-
core/
modules/ toolbar/ tests/ modules/ toolbar_disable_user_toolbar/ src/ Hook/ ToolbarDisableUserToolbarHooks.php, line 12
Namespace
Drupal\toolbar_disable_user_toolbar\HookView source
class ToolbarDisableUserToolbarHooks {
/**
* Implements hook_toolbar_alter().
*/
public function toolbarAlter(&$items) : void {
unset($items['user']);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ToolbarDisableUserToolbarHooks::toolbarAlter | public | function | Implements hook_toolbar_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.