public function SearchApiPageBlock::__construct in Search API Pages 8
SearchApiPageBlock constructor.
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\Entity\EntityStorageInterface $searchApiStorage: The entity type manager.
\Drupal\Core\Form\FormBuilderInterface $formBuilder: The form builder.
\Drupal\search_api_page\Form\SearchApiPageBlockForm $searchApiPageForm: The search API page form.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ SearchApiPageBlock.php, line 75
Class
- SearchApiPageBlock
- Provides a 'Search Api page form' block.
Namespace
Drupal\search_api_page\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $searchApiStorage, FormBuilderInterface $formBuilder, SearchApiPageBlockForm $searchApiPageForm) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->searchApiPageBlockForm = $searchApiPageForm;
$this->searchApiPageStorage = $searchApiStorage;
$this->formBuilder = $formBuilder;
}