You are here

protected function AcquiaContentHubPublisherAuditEntityCommands::reExportEntity in Acquia Content Hub 8.2

Deletes depcalc cache, nullify hashes and enqueues entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: Entity to export.

array $dependencies: An array of dependencies.

Throws

\Exception

1 call to AcquiaContentHubPublisherAuditEntityCommands::reExportEntity()
AcquiaContentHubPublisherAuditEntityCommands::showAuditResults in modules/acquia_contenthub_publisher/src/Commands/AcquiaContentHubPublisherAuditEntityCommands.php
Presents Results of the Audit and actions to take.

File

modules/acquia_contenthub_publisher/src/Commands/AcquiaContentHubPublisherAuditEntityCommands.php, line 470

Class

AcquiaContentHubPublisherAuditEntityCommands
Drush commands for Acquia Content Hub Publishers Audit Entity.

Namespace

Drupal\acquia_contenthub_publisher\Commands

Code

protected function reExportEntity(EntityInterface $entity, array $dependencies) {
  $this->publisherActions
    ->reExportEntityFull($entity, $dependencies);
  $this->output
    ->writeln(sprintf('Entity (%s, %s): "%s" has been enqueued for export.', $entity
    ->getEntityTypeId(), $entity
    ->id(), $entity
    ->uuid()));
  $this->output
    ->writeln('Also, the "depcalc" cache for this entity and all its dependencies has been cleared and Hashes Nullified.');
}