You are here

class ProcessEvent in Feeds 8.3

Fired to begin processing.

Hierarchy

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

Expanded class hierarchy of ProcessEvent

8 files declare their use of ProcessEvent
FeedsExecutable.php in src/FeedsExecutable.php
FeedsExecutableTest.php in tests/src/Unit/FeedsExecutableTest.php
FeedsSubscriber.php in tests/modules/feeds_test_events/src/EventSubscriber/FeedsSubscriber.php
FeedSubscriber.php in tests/modules/feeds_test_multiple_cron_runs/src/EventSubscriber/FeedSubscriber.php
LazySubscriber.php in src/EventSubscriber/LazySubscriber.php

... See full list

File

src/Event/ProcessEvent.php, line 11

Namespace

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

  /**
   * The item to process.
   *
   * @var \Drupal\feeds\Feeds\Item\ItemInterface
   */
  protected $item;

  /**
   * Constructs a ProcessEvent object.
   *
   * @param \Drupal\feeds\FeedInterface $feed
   *   The feed.
   * @param \Drupal\feeds\Feeds\Item\ItemInterface $item
   *   The item to process.
   */
  public function __construct(FeedInterface $feed, ItemInterface $item) {
    $this->feed = $feed;
    $this->item = $item;
  }

  /**
   * Returns the parser result.
   *
   * @return \Drupal\feeds\Feeds\Item\ItemInterface
   *   The item to process.
   */
  public function getItem() {
    return $this->item;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EventBase::$feed protected property The feed being imported.
EventBase::getFeed public function Returns the feed.
ProcessEvent::$item protected property The item to process.
ProcessEvent::getItem public function Returns the parser result.
ProcessEvent::__construct public function Constructs a ProcessEvent object. Overrides EventBase::__construct