You are here

public function BootstrapLanguagesBlock::blockSubmit in Bootstrap Languages 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/BootstrapLanguagesBlock.php, line 51

Class

BootstrapLanguagesBlock
Provides a 'Bootstrap Languages' block.

Namespace

Drupal\bootstrap_languages\Plugin\Block

Code

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