You are here

public function SearchBlock::__construct in Google Search Appliance 8

Constructs a new SearchBlock object.

Parameters

array $configuration:

string $plugin_id:

mixed $plugin_definition:

\Drupal\Core\Form\FormBuilderInterface $formBuilder:

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/SearchBlock.php, line 37

Class

SearchBlock
Provides a 'Google Appliance Search' block.

Namespace

Drupal\google_appliance\Plugin\Block

Code

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