AfterEntityPush.php in CMS Content Sync 2.1.x
File
src/Event/AfterEntityPush.php
View source
<?php
namespace Drupal\cms_content_sync\Event;
use Drupal\cms_content_sync\Entity\FlowInterface;
use Drupal\cms_content_sync\Entity\PoolInterface;
use Drupal\Core\Entity\EntityInterface;
use Symfony\Component\EventDispatcher\Event;
class AfterEntityPush extends Event {
public const EVENT_NAME = 'cms_content_sync.entity.push.after';
protected $entity;
protected $pool;
protected $flow;
protected $reason;
protected $action;
public function __construct(EntityInterface $entity, PoolInterface $pool, FlowInterface $flow, $reason, $action) {
$this->entity = $entity;
$this->pool = $pool;
$this->flow = $flow;
$this->reason = $reason;
$this->action = $action;
}
public function getEntity() {
return $this->entity;
}
}
Classes
Name |
Description |
AfterEntityPush |
The entity has been pushed successfully.
Other modules can use this to react on successful push events. |