You are here

public function DefaultSubscriber::__construct in Elasticsearch Connector Autocomplete 8

Constructs a new DefaultSubscriber object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

\Drupal\Core\Database\Connection $connection: The connection service.

File

src/EventSubscriber/DefaultSubscriber.php, line 38

Class

DefaultSubscriber
Class DefaultSubscriber.

Namespace

Drupal\elasticsearch_connector_autocomp\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, Connection $connection) {
  $this->entityTypeManager = $entityTypeManager;
  $this->connection = $connection;
}