You are here

public function SuggestionBlock::blockSubmit in Autocomplete Search Suggestions 8

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

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/SuggestionBlock.php, line 62

Class

SuggestionBlock
Provides a suggestion search block.

Namespace

Drupal\suggestion\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  SuggestionHelper::setConfig('action', $form_state
    ->getValue('action'));
}