public MenuLinkTreeInterface::transform(array $tree, array $manipulators)
Applies menu link tree manipulators to transform the given tree.
\Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu tree to manipulate.
array $manipulators: The menu link tree manipulators to apply. Each is an array with keys:
\Drupal\Core\Menu\MenuLinkTreeElement[] The manipulated menu link tree.
public function transform(array $tree, array $manipulators);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuLinkTreeInterface.php/function/MenuLinkTreeInterface::transform/8.1.x