You are here

public function SuggestionBlock::blockForm in Autocomplete Search Suggestions 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Block/SuggestionBlock.php \Drupal\suggestion\Plugin\Block\SuggestionBlock::blockForm()
  2. 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\Block

Code

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;
}