You are here

public function GroupMenuBlock::blockSubmit in Group Content Menu 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/GroupMenuBlock.php, line 157

Class

GroupMenuBlock
Provides a generic Menu block.

Namespace

Drupal\group_content_menu\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['level'] = $form_state
    ->getValue('level');
  $this->configuration['depth'] = $form_state
    ->getValue('depth');
  $this->configuration['expand_all_items'] = $form_state
    ->getValue('expand_all_items');
}