class ToolbarDisableUserToolbarHooks

Hook implementations for toolbar_disable_user_toolbar.

Hierarchy

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\Hook
View source
class ToolbarDisableUserToolbarHooks {
    
    /**
     * Implements hook_toolbar_alter().
     */
    public function toolbarAlter(&$items) {
        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.