public function PublisherTracker::queue in Acquia Content Hub 8.2
Add tracking for an entity in a self::QUEUED state.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity for which to add tracking.
Throws
\Exception
File
- modules/
acquia_contenthub_publisher/ src/ PublisherTracker.php, line 121
Class
- PublisherTracker
- The publisher tracker table class.
Namespace
Drupal\acquia_contenthub_publisherCode
public function queue(EntityInterface $entity) {
$this
->insertOrUpdate($entity, self::QUEUED);
}