function SwitchUserBlock::blockSubmit
Same name in other branches
- 5.x src/Plugin/Block/SwitchUserBlock.php \Drupal\devel\Plugin\Block\SwitchUserBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
-
src/
Plugin/ Block/ SwitchUserBlock.php, line 137
Class
- SwitchUserBlock
- Provides a block for switching users.
Namespace
Drupal\devel\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['list_size'] = $form_state->getValue('list_size');
$this->configuration['include_anon'] = $form_state->getValue('include_anon');
$this->configuration['show_form'] = $form_state->getValue('show_form');
}