You are here

ExpireEvent.php in Feeds 8.3

Namespace

Drupal\feeds\Event

File

src/Event/ExpireEvent.php
View 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

Namesort descending Description
ExpireEvent Fired to begin expiration.