You are here

public function SuggestionBlock::__construct 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::__construct()
  2. 3.0.x src/Plugin/Block/SuggestionBlock.php \Drupal\suggestion\Plugin\Block\SuggestionBlock::__construct()

Overrides BlockPluginTrait::__construct

File

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

Class

SuggestionBlock
Provides a suggestion search block.

Namespace

Drupal\suggestion\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FormBuilderInterface $formBuilder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->formBuilder = $formBuilder;
}