public function NiceMenusBlock::blockSubmit in Nice Menus 8
Parameters
array $form:
\Drupal\Core\Form\FormStateInterface $form_state:
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ NiceMenusBlock.php, line 118
Class
- NiceMenusBlock
- Provides a 'Nice menus' block.
Namespace
Drupal\nice_menus\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this
->setConfiguration([
'label' => $form_state
->getValue('label'),
'label_display' => $form_state
->getValue('label_display'),
'nice_menus_name' => $form_state
->getValue('nice_menus_name'),
'nice_menus_menu' => $form_state
->getValue('nice_menus_menu'),
'nice_menus_depth' => $form_state
->getValue('nice_menus_depth'),
'nice_menus_type' => $form_state
->getValue('nice_menus_type'),
'nice_menus_respect_expand' => $form_state
->getValue('nice_menus_respect_expand'),
]);
}