You are here

public function WelcomeUserNameBlock::blockSubmit in Welcome Username 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/WelcomeUserNameBlock.php, line 121

Class

WelcomeUserNameBlock
Provides a 'Welcome Username Login/Logout' Block.

Namespace

Drupal\welcome_username\Plugin\Block

Code

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