You are here

public function ImportEvent::setEntity in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Events/ImportEvent.php \Drupal\content_synchronizer\Events\ImportEvent::setEntity()
  2. 3.x src/Events/ImportEvent.php \Drupal\content_synchronizer\Events\ImportEvent::setEntity()

Set the entity.

Parameters

\Drupal\Core\Entity\Entity $entity: THe entity.

File

src/Events/ImportEvent.php, line 45

Class

ImportEvent
Import event.

Namespace

Drupal\content_synchronizer\Events

Code

public function setEntity(Entity $entity) {
  $this->entity = $entity;
}