You are here

public function SchedulerEvent::getEntity in Scheduler 2.x

Gets the entity object.

Return value

\Drupal\Core\Entity\EntityInterface The entity object that caused the event to fire.

File

src/Event/SchedulerEvent.php, line 18

Class

SchedulerEvent
Wraps a scheduler event for event listeners.

Namespace

Drupal\scheduler\Event

Code

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