You are here

public function OgMenuBlock::blockSubmit in Organic Groups Menu (OG Menu) 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/OgMenuBlock.php, line 164

Class

OgMenuBlock
Provides a generic Menu block.

Namespace

Drupal\og_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');
}