You are here

abstract class EventBase in Feeds 8.3

Helper class for events that need a feed.

Hierarchy

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

Expanded class hierarchy of EventBase

File

src/Event/EventBase.php, line 11

Namespace

Drupal\feeds\Event
View source
abstract class EventBase extends Event {

  /**
   * The feed being imported.
   *
   * @var \Drupal\feeds\FeedInterface
   */
  protected $feed;

  /**
   * Constructs an EventBase object.
   *
   * @param \Drupal\feeds\FeedInterface $feed
   *   The feed.
   */
  public function __construct(FeedInterface $feed) {
    $this->feed = $feed;
  }

  /**
   * Returns the feed.
   *
   * @return \Drupal\feeds\FeedInterface
   *   The feed.
   */
  public function getFeed() {
    return $this->feed;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EventBase::$feed protected property The feed being imported.
EventBase::getFeed public function Returns the feed.
EventBase::__construct public function Constructs an EventBase object. 6