public function ExpandedSetting::form in Menu Bean 7
Provides form
_state
Parameters
\Bean $bean:
$form:
Overrides SettingInterface::form
File
- lib/
Drupal/ menu_bean/ Setting/ ExpandedSetting.php, line 19 - Level Plugin class
Class
Namespace
Drupal\menu_bean\SettingCode
public function form(\Bean $bean, &$form, &$form_state) {
$form['expanded'] = array(
'#type' => 'checkbox',
'#title' => t('<strong>Expand all children</strong> of this tree.'),
'#default_value' => $bean->expanded,
);
}