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\EventCode
public function setEntity(EntityInterface $entity) {
$this->entity = $entity;
}