You are here

function _toolbar_do_get_rendered_subtrees in Drupal 8

#pre_render callback for toolbar_get_rendered_subtrees().

Deprecated

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

See also

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

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

File

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

Code

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