You are here

public function DropdownLanguage::blockSubmit in Dropdown Language 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Block/DropdownLanguage.php \Drupal\dropdown_language\Plugin\Block\DropdownLanguage::blockSubmit()
  2. 8.2 src/Plugin/Block/DropdownLanguage.php \Drupal\dropdown_language\Plugin\Block\DropdownLanguage::blockSubmit()
  3. 3.0.x src/Plugin/Block/DropdownLanguage.php \Drupal\dropdown_language\Plugin\Block\DropdownLanguage::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/DropdownLanguage.php, line 205

Class

DropdownLanguage
Provides an alternative language switcher block.

Namespace

Drupal\dropdown_language\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this
    ->setConfigurationValue('labels', $form_state
    ->getValue('labels'));
}