public function SchedulerEvent::getNode in Scheduler 2.x
Gets the node object (same as the entity object).
This method is retained for backwards compatibility because implementations of the event subscriber functions may be using $event->getNode().
Return value
\Drupal\Core\Entity\EntityInterface The entity object that caused the event to fire.
File
- src/
Event/ SchedulerEvent.php, line 41
Class
- SchedulerEvent
- Wraps a scheduler event for event listeners.
Namespace
Drupal\scheduler\EventCode
public function getNode() {
return $this->entity;
}