class EventBase in Scheduler 2.x
Same name in this branch
- 2.x src/Event/EventBase.php \Drupal\scheduler\Event\EventBase
- 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
Expanded class hierarchy of EventBase
File
- src/
Event/ EventBase.php, line 19
Namespace
Drupal\scheduler\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventBase:: |
public | property | The entity which is being processed. | |
EventBase:: |
public | function | Constructs the object. |