You are here

class i18nSetting in Menu Bean 7

Hierarchy

Expanded class hierarchy of i18nSetting

File

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

Namespace

Drupal\menu_bean\Setting
View source
class i18nSetting implements SettingInterface {

  /**
   * Provides form
   *
   * @param \Bean $bean
   * @param $form
   * @param $form_state
   */
  public function form(\Bean $bean, &$form, &$form_state) {
  }

  /**
   * Alters the menu tree
   *
   * @param array $tree
   * @param \Bean $bean
   */
  public function alterTree(array &$tree, \Bean $bean) {

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

}

Members

Namesort descending Modifiers Type Description Overrides
i18nSetting::alterTree public function Alters the menu tree Overrides SettingInterface::alterTree
i18nSetting::form public function Provides form Overrides SettingInterface::form