public function DepthSetting::form in Menu Bean 7
Provides form
_state
Parameters
\Bean $bean:
$form:
Overrides SettingInterface::form
File
- lib/Drupal/ menu_bean/ Setting/ DepthSetting.php, line 18 
- Level Plugin class
Class
Namespace
Drupal\menu_bean\SettingCode
public function form(\Bean $bean, &$form, &$form_state) {
  $form['depth'] = array(
    '#type' => 'select',
    '#title' => t('Maximum depth'),
    '#default_value' => $bean->depth,
    '#options' => array(
      '1' => '1',
      '2' => '2',
      '3' => '3',
      '4' => '4',
      '5' => '5',
      '6' => '6',
      '7' => '7',
      '8' => '8',
      '9' => '9',
      '0' => t('Unlimited'),
    ),
    '#description' => t('From the starting level, specify the maximum depth of the menu tree.'),
  );
}