EventBase.php in Scheduler 2.x
File
src/Event/EventBase.php
View source
<?php
namespace Drupal\scheduler\Event;
if (!class_exists('Drupal\\Component\\EventDispatcher\\Event')) {
class_alias('Symfony\\Component\\EventDispatcher\\Event', 'Drupal\\Component\\EventDispatcher\\Event');
}
use Drupal\Component\EventDispatcher\Event;
use Drupal\Core\Entity\EntityInterface;
class EventBase extends Event {
public $entity;
public function __construct(EntityInterface $entity) {
$this->entity = $entity;
}
}
Classes
Name |
Description |
EventBase |
Base class on which all Scheduler events are extended. |