You are here

public function DurationFieldCommand::__construct in Duration Field 3.0.x

Same name and namespace in other branches
  1. 8.2 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;
}