You are here

public function BeforeEntityPull::__construct in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Event/BeforeEntityPull.php \Drupal\cms_content_sync\Event\BeforeEntityPull::__construct()
  2. 2.0.x src/Event/BeforeEntityPull.php \Drupal\cms_content_sync\Event\BeforeEntityPull::__construct()

Constructs a entity pull event.

File

src/Event/BeforeEntityPull.php, line 33

Class

BeforeEntityPull
An entity is being pulled. Modules can use this to append additional field values or process other information for different use cases.

Namespace

Drupal\cms_content_sync\Event

Code

public function __construct(EntityInterface $entity, PullIntent $intent) {
  $this->entity = $entity;
  $this->intent = $intent;
}