You are here

public function TaxonomyEntityIndexCommands::__construct in Taxonomy Entity Index 8

Constructs a drush command object.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory service.

File

src/Commands/TaxonomyEntityIndexCommands.php, line 46

Class

TaxonomyEntityIndexCommands
A Drush commandfile.

Namespace

Drupal\taxonomy_entity_index\Commands

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->configFactory = $config_factory;
  $this->logger = $logger_factory
    ->get('taxonomy_entity_index');
}