class ExpireEvent in Feeds 8.3
Fired to begin expiration.
Hierarchy
- class \Drupal\feeds\Event\EventBase extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\feeds\Event\ExpireEvent
Expanded class hierarchy of ExpireEvent
4 files declare their use of ExpireEvent
- FeedExpireHandler.php in src/
FeedExpireHandler.php - FeedsSubscriber.php in tests/
modules/ feeds_test_events/ src/ EventSubscriber/ FeedsSubscriber.php - LazySubscriber.php in src/
EventSubscriber/ LazySubscriber.php - LazySubscriberTest.php in tests/
src/ Unit/ EventSubscriber/ LazySubscriberTest.php
File
- src/
Event/ ExpireEvent.php, line 10
Namespace
Drupal\feeds\EventView source
class ExpireEvent extends EventBase {
/**
* The item id being expired.
*
* @var int
*/
protected $itemId;
/**
* Constructs an EventBase object.
*
* @param \Drupal\feeds\FeedInterface $feed
* The feed.
* @param int $item_id
* The ID of the item that is being expired.
*/
public function __construct(FeedInterface $feed, $item_id) {
$this->feed = $feed;
$this->itemId = $item_id;
}
/**
* Returns the feed item id.
*
* @return int
* The item id.
*/
public function getItemId() {
return $this->itemId;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventBase:: |
protected | property | The feed being imported. | |
EventBase:: |
public | function | Returns the feed. | |
ExpireEvent:: |
protected | property | The item id being expired. | |
ExpireEvent:: |
public | function | Returns the feed item id. | |
ExpireEvent:: |
public | function |
Constructs an EventBase object. Overrides EventBase:: |