public function SmartMenusBlock::blockSubmit in Smartmenus.js 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ SmartMenusBlock.php, line 153
Class
- SmartMenusBlock
- Provides a 'SmartMenusBlock' block.
Namespace
Drupal\smartmenus\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this->configuration['smartmenus_menu'] = $values['smartmenus']['smartmenus_menu'];
$this->configuration['smartmenus_toggle'] = $values['smartmenus']['smartmenus_toggle'];
$this->configuration['smartmenus_orient'] = $values['smartmenus']['smartmenus_orient'];
$this->configuration['smartmenus_theme'] = $values['smartmenus']['smartmenus_theme'];
}