function toolbar_prerender_toolbar_administration_tray
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
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.