SchedulerEvent.php in Scheduler 8
Same filename and directory in other branches
Namespace
Drupal\schedulerFile
src/SchedulerEvent.phpView source
<?php
namespace Drupal\scheduler;
use Drupal\node\NodeInterface;
/**
* Wraps a scheduler event for event listeners.
*/
class SchedulerEvent extends EventBase {
/**
* Gets node object.
*
* @return \Drupal\node\NodeInterface
* The node object that caused the event to fire.
*/
public function getNode() {
return $this->node;
}
/**
* Sets the node object.
*
* @param \Drupal\node\NodeInterface $node
* The node object that caused the event to fire.
*/
public function setNode(NodeInterface $node) {
$this->node = $node;
}
}
Classes
Name | Description |
---|---|
SchedulerEvent | Wraps a scheduler event for event listeners. |