public function LifecycleEventArgs::getEntity

Retrieve associated Entity.

Return value

object

1 call to LifecycleEventArgs::getEntity()
PreUpdateEventArgs::assertValidField in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php
Assert the field exists in changeset.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/LifecycleEventArgs.php, line 63

Class

LifecycleEventArgs
Lifecycle Events are triggered by the UnitOfWork during lifecycle transitions of entities.

Namespace

Doctrine\Common\Persistence\Event

Code

public function getEntity() {
  return $this->entity;
}