You are here

public function IndexAddFieldsForm::__construct in Search API 8

Constructs an IndexAddFieldsForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\search_api\Utility\FieldsHelperInterface $fields_helper: The fields helper.

\Drupal\search_api\Utility\DataTypeHelperInterface $data_type_helper: The data type helper.

\Drupal\Core\Render\RendererInterface $renderer: The renderer to use.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

array $parameters: The parameters for this page request.

File

src/Form/IndexAddFieldsForm.php, line 103

Class

IndexAddFieldsForm
Provides a form for adding fields to a search index.

Namespace

Drupal\search_api\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, FieldsHelperInterface $fields_helper, DataTypeHelperInterface $data_type_helper, RendererInterface $renderer, DateFormatterInterface $date_formatter, MessengerInterface $messenger, array $parameters) {
  $this->entityTypeManager = $entity_type_manager;
  $this->fieldsHelper = $fields_helper;
  $this->dataTypeHelper = $data_type_helper;
  $this->renderer = $renderer;
  $this->dateFormatter = $date_formatter;
  $this->messenger = $messenger;
  $this->parameters = $parameters;
}