ExpireEvent.php in Feeds 8.3
Namespace
Drupal\feeds\EventFile
src/Event/ExpireEvent.phpView source
<?php
namespace Drupal\feeds\Event;
use Drupal\feeds\FeedInterface;
/**
* Fired to begin expiration.
*/
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;
}
}
Classes
Name![]() |
Description |
---|---|
ExpireEvent | Fired to begin expiration. |