You are here

public function IndexForm::__construct in Elasticsearch Connector 8.6

Same name and namespace in other branches
  1. 8.7 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::__construct()
  2. 8 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::__construct()
  3. 8.2 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::__construct()
  4. 8.5 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::__construct()

Constructs an IndexForm object.

Parameters

\Drupal\Core\Entity\EntityManager|\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity type manager.

ClientManagerInterface $client_manager:

File

src/Form/IndexForm.php, line 47

Class

IndexForm
Form controller for node type forms.

Namespace

Drupal\elasticsearch_connector\Form

Code

public function __construct(EntityTypeManagerInterface $entity_manager, ClientManagerInterface $client_manager, ClusterManager $cluster_manager) {

  // Setup object members.
  $this->entityTypeManager = $entity_manager;
  $this->clientManager = $client_manager;
  $this->clusterManager = $cluster_manager;
}