public function SuggestionBlock::blockSubmit in Autocomplete Search Suggestions 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/Block/SuggestionBlock.php \Drupal\suggestion\Plugin\Block\SuggestionBlock::blockSubmit()
- 8 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\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
SuggestionHelper::setConfig('action', $form_state
->getValue('action'));
}