You are here

public function EntityAlterEvent::__construct in Entity Share 8.2

EntityAlterEvent constructor.

Parameters

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

\Drupal\entity_share_client\Entity\RemoteInterface $remote: The remote entity.

File

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

Class

EntityAlterEvent
Defines an event for altering the entity.

Namespace

Drupal\entity_share_client\Event

Code

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