public function BeforeEntityPush::__construct in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Event/BeforeEntityPush.php \Drupal\cms_content_sync\Event\BeforeEntityPush::__construct()
- 2.0.x src/Event/BeforeEntityPush.php \Drupal\cms_content_sync\Event\BeforeEntityPush::__construct()
Constructs a extend entity push event.
File
- src/
Event/ BeforeEntityPush.php, line 33
Class
- 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.
Namespace
Drupal\cms_content_sync\EventCode
public function __construct(EntityInterface $entity, PushIntent $intent) {
$this->entity = $entity;
$this->intent = $intent;
}