function ToolbarController::trustedCallbacks

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

Overrides TrustedCallbackInterface::trustedCallbacks

File

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

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.