You are here

class ExpireEvent in Feeds 8.3

Fired to begin expiration.

Hierarchy

  • class \Drupal\feeds\Event\EventBase extends \Symfony\Component\EventDispatcher\Event

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
EventBase::$feed protected property The feed being imported.
EventBase::getFeed public function Returns the feed.
ExpireEvent::$itemId protected property The item id being expired.
ExpireEvent::getItemId public function Returns the feed item id.
ExpireEvent::__construct public function Constructs an EventBase object. Overrides EventBase::__construct