class i18nSetting in Menu Bean 7
Hierarchy
- class \Drupal\menu_bean\Setting\i18nSetting implements SettingInterface
Expanded class hierarchy of i18nSetting
File
- lib/
Drupal/ menu_bean/ Setting/ i18nSetting.php, line 10 - 118n Plugin class
Namespace
Drupal\menu_bean\SettingView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
i18nSetting:: |
public | function |
Alters the menu tree Overrides SettingInterface:: |
|
i18nSetting:: |
public | function |
Provides form Overrides SettingInterface:: |