class ParseEvent in Feeds 8.3
Fired to begin parsing.
Hierarchy
- class \Drupal\feeds\Event\EventBase extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\feeds\Event\ParseEvent
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
File
- src/
Event/ ParseEvent.php, line 12
Namespace
Drupal\feeds\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventBase:: |
protected | property | The feed being imported. | |
EventBase:: |
public | function | Returns the feed. | |
ParseEvent:: |
protected | property | The fetcher result. | |
ParseEvent:: |
protected | property | The parser result. | |
ParseEvent:: |
public | function | Returns the fetcher result. | |
ParseEvent:: |
public | function | Returns the parser result. | |
ParseEvent:: |
public | function | Sets the parser result. | |
ParseEvent:: |
public | function |
Constructs a ParseEvent object. Overrides EventBase:: |