You are here

class EventBase in Scheduler 2.x

Same name in this branch
  1. 2.x src/Event/EventBase.php \Drupal\scheduler\Event\EventBase
  2. 2.x scheduler_rules_integration/src/Event/EventBase.php \Drupal\scheduler_rules_integration\Event\EventBase

Base class on which all Scheduler events are extended.

Hierarchy

  • class \Drupal\Component\EventDispatcher\Event extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of EventBase

File

src/Event/EventBase.php, line 19

Namespace

Drupal\scheduler\Event
View source
class EventBase extends Event {

  /**
   * The entity which is being processed.
   *
   * @var \Drupal\Core\Entity\EntityInterface
   */
  public $entity;

  /**
   * Constructs the object.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity which is being processed.
   */
  public function __construct(EntityInterface $entity) {
    $this->entity = $entity;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EventBase::$entity public property The entity which is being processed.
EventBase::__construct public function Constructs the object.