You are here

function toolbar_prerender_toolbar_administration_tray in Drupal 8

Renders the toolbar's administration tray.

Parameters

array $element: A renderable array.

Return value

array The updated renderable array.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\toolbar\Controller\ToolbarController::preRenderAdministrationTray() instead.

See also

https://www.drupal.org/node/2966725

\Drupal\Core\Render\RendererInterface::render()

1 call to toolbar_prerender_toolbar_administration_tray()
ToolbarLegacyTest::testPreRenderToolbarAdministrationTray in core/modules/toolbar/tests/src/Kernel/ToolbarLegacyTest.php
Tests toolbar_prerender_toolbar_administration_tray() deprecation.

File

core/modules/toolbar/toolbar.module, line 225
Administration toolbar for quick access to top level administration items.

Code

function toolbar_prerender_toolbar_administration_tray(array $element) {
  @trigger_error('toolbar_prerender_toolbar_administration_tray() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use \\Drupal\\toolbar\\Controller\\ToolbarController::preRenderAdministrationTray() instead. See https://www.drupal.org/node/2966725', E_USER_DEPRECATED);
  return ToolbarController::preRenderAdministrationTray($element);
}