You are here

public function GroupMenuBlock::blockSubmit in Group Menu 8

Overrides BlockPluginTrait::blockSubmit

File

modules/groupmenu_block/src/Plugin/Block/GroupMenuBlock.php, line 53

Class

GroupMenuBlock
Provides a block for displaying group menus.

Namespace

Drupal\groupmenu_block\Plugin\Block

Code

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