abstract class EventBase in Feeds 8.3
Helper class for events that need a feed.
Hierarchy
- class \Drupal\feeds\Event\EventBase extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of EventBase
File
- src/
Event/ EventBase.php, line 11
Namespace
Drupal\feeds\EventView source
abstract class EventBase extends Event {
/**
* The feed being imported.
*
* @var \Drupal\feeds\FeedInterface
*/
protected $feed;
/**
* Constructs an EventBase object.
*
* @param \Drupal\feeds\FeedInterface $feed
* The feed.
*/
public function __construct(FeedInterface $feed) {
$this->feed = $feed;
}
/**
* Returns the feed.
*
* @return \Drupal\feeds\FeedInterface
* The feed.
*/
public function getFeed() {
return $this->feed;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventBase:: |
protected | property | The feed being imported. | |
EventBase:: |
public | function | Returns the feed. | |
EventBase:: |
public | function | Constructs an EventBase object. | 6 |