function ToolbarController::trustedCallbacks

Same name in other branches
  1. 8.9.x core/modules/toolbar/src/Controller/ToolbarController.php \Drupal\toolbar\Controller\ToolbarController::trustedCallbacks()
  2. 10 core/modules/toolbar/src/Controller/ToolbarController.php \Drupal\toolbar\Controller\ToolbarController::trustedCallbacks()
  3. 11.x core/modules/toolbar/src/Controller/ToolbarController.php \Drupal\toolbar\Controller\ToolbarController::trustedCallbacks()

Overrides TrustedCallbackInterface::trustedCallbacks

File

core/modules/toolbar/src/Controller/ToolbarController.php, line 143

Class

ToolbarController
Defines a controller for the toolbar module.

Namespace

Drupal\toolbar\Controller

Code

public static function trustedCallbacks() {
    return [
        'preRenderAdministrationTray',
        'preRenderGetRenderedSubtrees',
    ];
}

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