class DeleteFeedsEvent in Feeds 8.3
Fired when one or more feeds is being deleted.
Hierarchy
- class \Drupal\feeds\Event\DeleteFeedsEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of DeleteFeedsEvent
4 files declare their use of DeleteFeedsEvent
- DeleteFeedsEventTest.php in tests/
src/ Unit/ Event/ DeleteFeedsEventTest.php - Feed.php in src/
Entity/ Feed.php - FeedsSubscriber.php in tests/
modules/ feeds_test_events/ src/ EventSubscriber/ FeedsSubscriber.php - PubSubHubbub.php in src/
EventSubscriber/ PubSubHubbub.php
File
- src/
Event/ DeleteFeedsEvent.php, line 10
Namespace
Drupal\feeds\EventView source
class DeleteFeedsEvent extends Event {
/**
* The feeds being deleted.
*
* @var \Drupal\feeds\FeedInterface[]
*/
protected $feeds;
/**
* Constructs a new DeleteFeedsEvent object.
*
* @param \Drupal\feeds\FeedInterface[] $feeds
* A list of feed entities.
*/
public function __construct(array $feeds) {
$this->feeds = $feeds;
}
/**
* Returns the feeds being deleted.
*
* @return \Drupal\feeds\FeedInterface[]
* A list of feeds being deleted.
*/
public function getFeeds() {
return $this->feeds;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeleteFeedsEvent:: |
protected | property | The feeds being deleted. | |
DeleteFeedsEvent:: |
public | function | Returns the feeds being deleted. | |
DeleteFeedsEvent:: |
public | function | Constructs a new DeleteFeedsEvent object. |