public function ReExport::__construct in Acquia Content Hub 8.2
ReExport constructor.
Parameters
\Drupal\acquia_contenthub_publisher\PublisherActions $publisher_actions: The Publisher Actions Service.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The Entity Repository service.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.
File
- modules/
acquia_contenthub_publisher/ src/ EventSubscriber/ HandleWebhook/ ReExport.php, line 52
Class
- ReExport
- Re-exports an entity and all its dependencies on a webhook request.
Namespace
Drupal\acquia_contenthub_publisher\EventSubscriber\HandleWebhookCode
public function __construct(PublisherActions $publisher_actions, EntityRepositoryInterface $entity_repository, LoggerChannelFactoryInterface $logger_factory) {
$this->publisherActions = $publisher_actions;
$this->entityRepository = $entity_repository;
$this->channel = $logger_factory
->get('acquia_contenthub_publisher');
}