You are here

public function LogintobogganLoginBlock::blockSubmit in LoginToboggan 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/LogintobogganLoginBlock.php, line 97

Class

LogintobogganLoginBlock
Provides a 'LoginToboggan login' block.

Namespace

Drupal\logintoboggan\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  parent::blockSubmit($form, $form_state);
  $values = $form_state
    ->getValues();
  $this->configuration['login_display_type'] = $values['login_display_type'];
  $this->configuration['login_block_message'] = Xss::filter($values['login_block_message']);
}