public function IndexFieldsForm::__construct in Search API 8
Constructs an IndexFieldsForm 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\search_api\DataType\DataTypePluginManager $data_type_plugin_manager: The data type plugin manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer to use.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.
\Drupal\search_api\Utility\DataTypeHelperInterface $data_type_helper: The data type helper.
\Drupal\search_api\Utility\FieldsHelperInterface $fields_helper: The fields helper.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
File
- src/
Form/ IndexFieldsForm.php, line 93
Class
- IndexFieldsForm
- Provides a form for configuring the fields of a search index.
Namespace
Drupal\search_api\FormCode
public function __construct(SharedTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager, DataTypePluginManager $data_type_plugin_manager, RendererInterface $renderer, DateFormatterInterface $date_formatter, DataTypeHelperInterface $data_type_helper, FieldsHelperInterface $fields_helper, MessengerInterface $messenger) {
$this->tempStore = $temp_store_factory
->get('search_api_index');
$this->entityTypeManager = $entity_type_manager;
$this->dataTypePluginManager = $data_type_plugin_manager;
$this->renderer = $renderer;
$this->dateFormatter = $date_formatter;
$this->dataTypeHelper = $data_type_helper;
$this->fieldsHelper = $fields_helper;
$this->messenger = $messenger;
}