public function DropdownLanguage::blockSubmit in Dropdown Language 3.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/Block/DropdownLanguage.php \Drupal\dropdown_language\Plugin\Block\DropdownLanguage::blockSubmit()
- 8 src/Plugin/Block/DropdownLanguage.php \Drupal\dropdown_language\Plugin\Block\DropdownLanguage::blockSubmit()
- 8.2 src/Plugin/Block/DropdownLanguage.php \Drupal\dropdown_language\Plugin\Block\DropdownLanguage::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ DropdownLanguage.php, line 305
Class
- DropdownLanguage
- Provides an alternative language switcher block.
Namespace
Drupal\dropdown_language\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this
->setConfigurationValue('labels', $form_state
->getValue('labels'));
}