function LocalTasksBlock::blockSubmit
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php \Drupal\Core\Menu\Plugin\Block\LocalTasksBlock::blockSubmit()
- 10 core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php \Drupal\Core\Menu\Plugin\Block\LocalTasksBlock::blockSubmit()
- 11.x core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php \Drupal\Core\Menu\Plugin\Block\LocalTasksBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
-
core/
lib/ Drupal/ Core/ Menu/ Plugin/ Block/ LocalTasksBlock.php, line 151
Class
- LocalTasksBlock
- Provides a "Tabs" block to display the local tasks.
Namespace
Drupal\Core\Menu\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$levels = $form_state->getValue('levels');
$this->configuration['primary'] = $levels['primary'];
$this->configuration['secondary'] = $levels['secondary'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.