public function SearchBoxBlock::__construct in Panopoly 8.2
Constructs a new EntityView.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
Overrides BlockPluginTrait::__construct
File
- modules/
panopoly/ panopoly_search/ src/ Plugin/ Block/ SearchBoxBlock.php, line 43
Class
- SearchBoxBlock
- Block that displays the search box.
Namespace
Drupal\panopoly_search\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, FormBuilderInterface $form_builder) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->formBuilder = $form_builder;
}