You are here

public function SuggestionBlock::blockForm in Autocomplete Search Suggestions 3.0.x

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