You are here

public function GSESearchFormBlock::__construct in Simple Google Custom Search Engine 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/GSESearchFormBlock.php \Drupal\simple_gse_search\Plugin\Block\GSESearchFormBlock::__construct()

Constructs a new GSESearchFormBlock object.

Parameters

array $configuration: Configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

\Drupal\Core\Form\FormBuilderInterface $formBuilder: Form builder service.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/GSESearchFormBlock.php, line 39

Class

GSESearchFormBlock
Provides an 'Google CSE Search' block.

Namespace

Drupal\simple_gse_search\Plugin\Block

Code

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