public function SchedulerEvent::setEntity in Scheduler 2.x
Sets the entity object.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity object that caused the event to fire.
File
- src/
Event/ SchedulerEvent.php, line 28
Class
- SchedulerEvent
- Wraps a scheduler event for event listeners.
Namespace
Drupal\scheduler\EventCode
public function setEntity(EntityInterface $entity) {
$this->entity = $entity;
}