ToolbarDisableUserToolbarHooks.php

Namespace

Drupal\toolbar_disable_user_toolbar\Hook

File

core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/src/Hook/ToolbarDisableUserToolbarHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\toolbar_disable_user_toolbar\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for toolbar_disable_user_toolbar.
 */
class ToolbarDisableUserToolbarHooks {
    
    /**
     * Implements hook_toolbar_alter().
     */
    public function toolbarAlter(&$items) {
        unset($items['user']);
    }

}

Classes

Title Deprecated Summary
ToolbarDisableUserToolbarHooks Hook implementations for toolbar_disable_user_toolbar.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.