You are here

public function BaseEntityEvent::setEntity in Hook Event Dispatcher 8

Set the Entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The Entity.

Deprecated

This is not needed, objects are past by reference.

File

src/Event/Entity/BaseEntityEvent.php, line 49

Class

BaseEntityEvent
Class BaseEntityEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Entity

Code

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