You are here

class EventBase in Scheduler 8

Base class on which all Scheduler events are extended.

Hierarchy

  • class \Drupal\scheduler\EventBase extends \Drupal\Component\EventDispatcher\Event

Expanded class hierarchy of EventBase

6 files declare their use of EventBase
ExistingNodeIsScheduledForPublishingEvent.php in scheduler_rules_integration/src/Event/ExistingNodeIsScheduledForPublishingEvent.php
ExistingNodeIsScheduledForUnpublishingEvent.php in scheduler_rules_integration/src/Event/ExistingNodeIsScheduledForUnpublishingEvent.php
NewNodeIsScheduledForPublishingEvent.php in scheduler_rules_integration/src/Event/NewNodeIsScheduledForPublishingEvent.php
NewNodeIsScheduledForUnpublishingEvent.php in scheduler_rules_integration/src/Event/NewNodeIsScheduledForUnpublishingEvent.php
SchedulerHasPublishedThisNodeEvent.php in scheduler_rules_integration/src/Event/SchedulerHasPublishedThisNodeEvent.php

... See full list

File

src/EventBase.php, line 19

Namespace

Drupal\scheduler
View source
class EventBase extends Event {

  /**
   * The node which is being processed.
   *
   * @var \Drupal\node\NodeInterface
   */
  public $node;

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

}

Members

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