You are here

public function i18nSetting::alterTree in Menu Bean 7

Alters the menu tree

Parameters

array $tree:

\Bean $bean:

Overrides SettingInterface::alterTree

File

lib/Drupal/menu_bean/Setting/i18nSetting.php, line 26
118n Plugin class

Class

i18nSetting

Namespace

Drupal\menu_bean\Setting

Code

public function alterTree(array &$tree, \Bean $bean) {

  // Localize the tree.
  if (module_exists('i18n_menu')) {
    $tree = i18n_menu_localize_tree($tree);
  }
}