public function IndexBreakLockForm::__construct in Search API 8
Constructs an IndexBreakLockForm object.
Parameters
\Drupal\Core\TempStore\SharedTempStoreFactory $temp_store_factory: The factory for shared temporary storages.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer to use.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
File
- src/
Form/ IndexBreakLockForm.php, line 58
Class
- IndexBreakLockForm
- Builds the form to break the lock of an edited search index.
Namespace
Drupal\search_api\FormCode
public function __construct(SharedTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, MessengerInterface $messenger) {
$this->tempStore = $temp_store_factory
->get('search_api_index');
$this->entityTypeManager = $entity_type_manager;
$this->renderer = $renderer;
$this->messenger = $messenger;
}