toolbar_disable_user_toolbar.module in Drupal 10
Test module.
File
core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.moduleView source
<?php
/**
* @file
* Test module.
*/
/**
* Implements hook_toolbar_alter().
*/
function toolbar_disable_user_toolbar_toolbar_alter(&$items) {
unset($items['user']);
}
Functions
Name | Description |
---|---|
toolbar_disable_user_toolbar_toolbar_alter | Implements hook_toolbar_alter(). |