public function ContentPublishingActions::triggerQueue in Acquia Lift Connector 8.4
Triggers the Content Hub export process.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The current entity.
File
- modules/
acquia_lift_publisher/ src/ ContentPublishingActions.php, line 52
Class
- ContentPublishingActions
- Contains helper methods for managing Content Hub exports.
Namespace
Drupal\acquia_lift_publisherCode
public function triggerQueue(EntityInterface $entity) : void {
if (!$entity instanceof ContentEntityInterface || !$this->publisherSettings
->get(ContentPublishingForm::$pushSettingField)) {
return;
}
if ($this->exportQueue
->getQueueCount() < 1) {
return;
}
$this->exportQueue
->processQueueItems();
}