public function GroupMenuBlock::blockForm in Group Menu 8
Overrides BlockPluginTrait::blockForm
File
- modules/
groupmenu_block/ src/ Plugin/ Block/ GroupMenuBlock.php, line 37
Class
- GroupMenuBlock
- Provides a block for displaying group menus.
Namespace
Drupal\groupmenu_block\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
$form['max_depth'] = [
'#type' => 'select',
'#title' => $this
->t('Max Depth'),
'#default_value' => $this->configuration['max_depth'],
'#weight' => 1,
'#options' => range(0, 10),
'#description' => $this
->t('Set 0 for no limit.'),
];
return $form;
}