public function ImportedEntity::__construct in Acquia Content Hub 8.2
ImportedEntity constructor.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module Handler Interface.
File
- modules/
acquia_contenthub_publisher/ src/ EventSubscriber/ EnqueueEligibility/ ImportedEntity.php, line 30
Class
- ImportedEntity
- Any entity that has been previously imported shouldn't be enqueued.
Namespace
Drupal\acquia_contenthub_publisher\EventSubscriber\EnqueueEligibilityCode
public function __construct(ModuleHandlerInterface $module_handler) {
if ($module_handler
->moduleExists('acquia_contenthub_subscriber')) {
$this->subscriberTracker = \Drupal::service('acquia_contenthub_subscriber.tracker');
}
}