You are here

public function PushIntent::afterPush in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 2.1.x src/PushIntent.php \Drupal\cms_content_sync\PushIntent::afterPush()
1 call to PushIntent::afterPush()
PushIntent::execute in src/PushIntent.php
Push the given entity.

File

src/PushIntent.php, line 461

Class

PushIntent
Class PushIntent.

Namespace

Drupal\cms_content_sync

Code

public function afterPush($action, $entity) {
  $this
    ->updateEntityStatusAfterSuccessfulPush($action);

  // Dispatch entity push event to give other modules the possibility to react on it.
  \Drupal::service('event_dispatcher')
    ->dispatch(AfterEntityPush::EVENT_NAME, new AfterEntityPush($entity, $this->pool, $this->flow, $this->reason, $this->action));
  $this
    ->extendedEntityExportLogMessage($entity);
}