function SystemMenuBlock::blockSubmit
Same name in other branches
- 9 core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::blockSubmit()
- 8.9.x core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::blockSubmit()
- 11.x core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
1 method overrides SystemMenuBlock::blockSubmit()
- NavigationMenuBlock::blockSubmit in core/
modules/ navigation/ src/ Plugin/ Block/ NavigationMenuBlock.php
File
-
core/
modules/ system/ src/ Plugin/ Block/ SystemMenuBlock.php, line 140
Class
- SystemMenuBlock
- Provides a generic Menu block.
Namespace
Drupal\system\Plugin\BlockCode
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.