BeforeEntityPush.php in CMS Content Sync 2.0.x
File
src/Event/BeforeEntityPush.php
View source
<?php
namespace Drupal\cms_content_sync\Event;
use Drupal\cms_content_sync\PushIntent;
use Drupal\Core\Entity\EntityInterface;
use Symfony\Component\EventDispatcher\Event;
class BeforeEntityPush extends Event {
public const EVENT_NAME = 'cms_content_sync.entity.push.before';
public $entity;
public $intent;
public function __construct(EntityInterface $entity, PushIntent $intent) {
$this->entity = $entity;
$this->intent = $intent;
}
}
Classes
Name |
Description |
BeforeEntityPush |
An entity is about to be pushed.
Other modules can use this to interact with the push, primarily to add,
change or remove field values. |