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