public function SuggestionBlock::blockForm in Autocomplete Search Suggestions 8
Same name and namespace in other branches
- 8.2 src/Plugin/Block/SuggestionBlock.php \Drupal\suggestion\Plugin\Block\SuggestionBlock::blockForm()
- 3.0.x src/Plugin/Block/SuggestionBlock.php \Drupal\suggestion\Plugin\Block\SuggestionBlock::blockForm()
Overrides BlockPluginTrait::blockForm
File
- src/
Plugin/ Block/ SuggestionBlock.php, line 49
Class
- SuggestionBlock
- Provides a suggestion search block.
Namespace
Drupal\suggestion\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
$form['action'] = [
'#title' => $this
->t('Action'),
'#description' => $this
->t('The form action.'),
'#type' => 'textfield',
'#default_value' => SuggestionHelper::getConfig('action'),
];
return $form;
}