You are here

class ParseEvent in Feeds 8.3

Fired to begin parsing.

Hierarchy

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

Expanded class hierarchy of ParseEvent

12 files declare their use of ParseEvent
AfterParseBase.php in src/EventSubscriber/AfterParseBase.php
AfterParseBaseTest.php in tests/src/Unit/EventSubscriber/AfterParseBaseTest.php
ConfigEntityReferenceTest.php in tests/src/Kernel/Feeds/Target/ConfigEntityReferenceTest.php
CsvFeed.php in tests/modules/feeds_test_alter_source/src/EventSubscriber/CsvFeed.php
FeedsExecutable.php in src/FeedsExecutable.php

... See full list

File

src/Event/ParseEvent.php, line 12

Namespace

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

  /**
   * The fetcher result.
   *
   * @var \Drupal\feeds\Result\FetcherResultInterface
   */
  protected $fetcherResult;

  /**
   * The parser result.
   *
   * @var \Drupal\feeds\Result\ParserResultInterface
   */
  protected $parserResult;

  /**
   * Constructs a ParseEvent object.
   *
   * @param \Drupal\feeds\FeedInterface $feed
   *   The feed.
   * @param \Drupal\feeds\Result\FetcherResultInterface $fetcher_result
   *   The fetcher result.
   */
  public function __construct(FeedInterface $feed, FetcherResultInterface $fetcher_result) {
    $this->feed = $feed;
    $this->fetcherResult = $fetcher_result;
  }

  /**
   * Returns the fetcher result.
   *
   * @return \Drupal\feeds\Result\FetcherResultInterface
   *   The fetcher result.
   */
  public function getFetcherResult() {
    return $this->fetcherResult;
  }

  /**
   * Returns the parser result.
   *
   * @return \Drupal\feeds\Result\ParserResultInterface
   *   The parser result.
   */
  public function getParserResult() {
    return $this->parserResult;
  }

  /**
   * Sets the parser result.
   *
   * @param \Drupal\feeds\Result\ParserResultInterface $result
   *   The parser result.
   */
  public function setParserResult(ParserResultInterface $result) {
    $this->parserResult = $result;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EventBase::$feed protected property The feed being imported.
EventBase::getFeed public function Returns the feed.
ParseEvent::$fetcherResult protected property The fetcher result.
ParseEvent::$parserResult protected property The parser result.
ParseEvent::getFetcherResult public function Returns the fetcher result.
ParseEvent::getParserResult public function Returns the parser result.
ParseEvent::setParserResult public function Sets the parser result.
ParseEvent::__construct public function Constructs a ParseEvent object. Overrides EventBase::__construct