Defines a controller for the toolbar module.
Expanded class hierarchy of ToolbarController
class ToolbarController {
/**
* Returns the rendered subtree of each top-level toolbar link.
*
* @return \Symfony\Component\HttpFoundation\JsonResponse
*/
public function subtreesJsonp() {
_toolbar_initialize_page_cache();
$subtrees = toolbar_get_rendered_subtrees();
$response = new JsonResponse($subtrees);
$response
->setCallback('Drupal.toolbar.setSubtrees');
return $response;
}
}
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ToolbarController:: |
public | function | Returns the rendered subtree of each top-level toolbar link. |