You are here

public function SystemMenuBlock::blockSubmit in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

core/modules/system/src/Plugin/Block/SystemMenuBlock.php, line 141

Class

SystemMenuBlock
Provides a generic Menu block.

Namespace

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