You are here

public function EventBase::__construct in Scheduler 2.x

Constructs the object.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity which is being processed.

File

src/Event/EventBase.php, line 34

Class

EventBase
Base class on which all Scheduler events are extended.

Namespace

Drupal\scheduler\Event

Code

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