You are here

public function EntityAlterEvent::setEntity in Entity Share 8.2

Sets the Entity object.

Parameters

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

File

modules/entity_share_client/src/Event/EntityAlterEvent.php, line 71

Class

EntityAlterEvent
Defines an event for altering the entity.

Namespace

Drupal\entity_share_client\Event

Code

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