You are here

public function DurationFieldCommand::__construct in Duration Field 8.2

Same name and namespace in other branches
  1. 3.0.x src/Drush/DurationFieldCommand.php \Drupal\duration_field\Drush\DurationFieldCommand::__construct()

Constructs a DurationFieldCommand object.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo: The entity type bundle info service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.

File

src/Drush/DurationFieldCommand.php, line 48

Class

DurationFieldCommand
Drush commands for the Duration Field module.

Namespace

Drupal\duration_field\Drush

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo, EntityFieldManagerInterface $entityFieldManager) {
  $this->entityTypeManager = $entityTypeManager;
  $this->entityTypeBundleInfo = $entityTypeBundleInfo;
  $this->entityFieldManager = $entityFieldManager;
}