You are here

public function ScheduledPublishCron::__construct in Scheduled Publish 8.2

Same name and namespace in other branches
  1. 8.3 src/Service/ScheduledPublishCron.php \Drupal\scheduled_publish\Service\ScheduledPublishCron::__construct()
  2. 8 src/Service/ScheduledPublishCron.php \Drupal\scheduled_publish\Service\ScheduledPublishCron::__construct()

ScheduledPublishCron constructor.

Parameters

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityBundleInfo:

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager:

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:

\Drupal\Component\Datetime\TimeInterface $dateTime:

File

src/Service/ScheduledPublishCron.php, line 64

Class

ScheduledPublishCron
Class ScheduledPublishCron

Namespace

Drupal\scheduled_publish\Service

Code

public function __construct(EntityTypeBundleInfoInterface $entityBundleInfo, EntityFieldManagerInterface $entityFieldManager, EntityTypeManagerInterface $entityTypeManager, TimeInterface $dateTime) {
  $this->entityBundleInfoService = $entityBundleInfo;
  $this->entityFieldManager = $entityFieldManager;
  $this->entityTypeManager = $entityTypeManager;
  $this->dateTime = $dateTime;
}