class AfterEntityPush in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Event/AfterEntityPush.php \Drupal\cms_content_sync\Event\AfterEntityPush
- 2.0.x src/Event/AfterEntityPush.php \Drupal\cms_content_sync\Event\AfterEntityPush
The entity has been pushed successfully. Other modules can use this to react on successful push events.
Hierarchy
- class \Drupal\cms_content_sync\Event\AfterEntityPush extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of AfterEntityPush
1 file declares its use of AfterEntityPush
- PushIntent.php in src/
PushIntent.php
File
- src/
Event/ AfterEntityPush.php, line 14
Namespace
Drupal\cms_content_sync\EventView source
class AfterEntityPush extends Event {
public const EVENT_NAME = 'cms_content_sync.entity.push.after';
/**
* Entity.
*
* @var \Drupal\Core\Entity\EntityInterface
*/
protected $entity;
/**
* The pool the entity got pushed to.
*
* @var \Drupal\cms_content_sync\Entity\PoolInterface
*/
protected $pool;
/**
* The flow that was used to push the entity.
*
* @var \Drupal\cms_content_sync\Entity\FlowInterface
*/
protected $flow;
/**
* The reason the entity got pushed.
*/
protected $reason;
/**
* Action.
*/
protected $action;
/**
* Constructs a entity push event.
*
* @param $reason
* @param $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;
}
/**
* Get the pushed entity.
*
* @return \Drupal\Core\Entity\EntityInterface
*/
public function getEntity() {
return $this->entity;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AfterEntityPush:: |
protected | property | Action. | |
AfterEntityPush:: |
protected | property | Entity. | |
AfterEntityPush:: |
protected | property | The flow that was used to push the entity. | |
AfterEntityPush:: |
protected | property | The pool the entity got pushed to. | |
AfterEntityPush:: |
protected | property | The reason the entity got pushed. | |
AfterEntityPush:: |
public | constant | ||
AfterEntityPush:: |
public | function | Get the pushed entity. | |
AfterEntityPush:: |
public | function | Constructs a entity push event. |