public static function SearchApiPageBlock::create in Search API Pages 8
{@inheritDoc)
Overrides ContainerFactoryPluginInterface::create
File
- src/
Plugin/ Block/ SearchApiPageBlock.php, line 48
Class
- SearchApiPageBlock
- Provides a 'Search Api page form' block.
Namespace
Drupal\search_api_page\Plugin\BlockCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('entity_type.manager')
->getStorage('search_api_page'), $container
->get('form_builder'), $container
->get('block_form.search_api_page'));
}