AfterEntityPull.php in CMS Content Sync 8
File
src/Event/AfterEntityPull.php
View source
<?php
namespace Drupal\cms_content_sync\Event;
use Drupal\cms_content_sync\PullIntent;
use Drupal\Core\Entity\EntityInterface;
use Symfony\Component\EventDispatcher\Event;
class AfterEntityPull extends Event {
public const EVENT_NAME = 'cms_content_sync.entity.pull.after';
public $entity;
public $intent;
public function __construct(EntityInterface $entity, PullIntent $intent) {
$this->entity = $entity;
$this->intent = $intent;
}
public function getIntent() {
return $this->intent;
}
public function getEntity() {
return $this->entity;
}
}
Classes
Name |
Description |
AfterEntityPull |
The entity has been pulled successfully.
Other modules can use this to react on successful pull events. |