You are here

public function SwitchUserBlock::blockSubmit in Devel 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/Block/SwitchUserBlock.php \Drupal\devel\Plugin\Block\SwitchUserBlock::blockSubmit()
  2. 8.2 src/Plugin/Block/SwitchUserBlock.php \Drupal\devel\Plugin\Block\SwitchUserBlock::blockSubmit()
  3. 4.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\Block

Code

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