BeforeEntityPull.php in CMS Content Sync 2.0.x
File
src/Event/BeforeEntityPull.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 BeforeEntityPull extends Event {
public const EVENT_NAME = 'cms_content_sync.entity.pull.before';
public $entity;
public $intent;
public function __construct(EntityInterface $entity, PullIntent $intent) {
$this->entity = $entity;
$this->intent = $intent;
}
}
Classes
Name |
Description |
BeforeEntityPull |
An entity is being pulled.
Modules can use this to append additional field values or process other
information for different use cases. |