You are here

public function CommandHelper::__construct in Search API Solr 8.2

Constructs a CommandHelper object.

Parameters

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException Thrown if the "search_api_index" or "search_api_server" entity types are unknown.

File

src/Utility/CommandHelper.php, line 34

Class

CommandHelper
Provides functionality to be used by CLI tools.

Namespace

Drupal\search_api_solr\Utility

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}