function toolbar_menu_prerender_toolbar_tray in Toolbar Menu 8.2
Same name and namespace in other branches
- 8 toolbar_menu.module \toolbar_menu_prerender_toolbar_tray()
Pre-render the toolbar_menu tray element.
Parameters
array $element: The tray element to pre-render.
Return value
array The pre-rendered tray element.
Deprecated
in toolbar_menu:8.x-2.2 and is removed from toolbar_menu:8.x-3.0. Use \Drupal\toolbar_menu\ToolbarMenuPrerender::prerenderToolbarTray instead.
See also
https://www.drupal.org/project/toolbar_menu/issues/3072454
File
- ./
toolbar_menu.module, line 106 - Add menu entries in the Drupal Toolbar.
Code
function toolbar_menu_prerender_toolbar_tray(array $element) {
@trigger_error('toolbar_menu_prerender_toolbar_tray() is deprecated in toolbar_menu:8.x-2.2 and is removed from toolbar_menu:8.x-3.0. Use \\Drupal\\toolbar_menu\\ToolbarMenuPrerender::prerenderToolbarTray() instead. See https://www.drupal.org/project/toolbar_menu/issues/3072454', E_USER_DEPRECATED);
return ToolbarMenuPrerender::prerenderToolbarTray($element);
}