class FetchEvent in Feeds 8.3
Fired to begin fetching.
Hierarchy
- class \Drupal\feeds\Event\EventBase extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\feeds\Event\FetchEvent
Expanded class hierarchy of FetchEvent
7 files declare their use of FetchEvent
- 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 - FetchEventTest.php in tests/
src/ Unit/ Event/ FetchEventTest.php - LazySubscriber.php in src/
EventSubscriber/ LazySubscriber.php
File
- src/
Event/ FetchEvent.php, line 10
Namespace
Drupal\feeds\EventView source
class FetchEvent extends EventBase {
/**
* The fetcher result.
*
* @var \Drupal\feeds\Result\FetcherResultInterface
*/
protected $fetcherResult;
/**
* Returns the fetcher result.
*
* @return \Drupal\feeds\Result\FetcherResultInterface
* The fetcher result.
*/
public function getFetcherResult() {
return $this->fetcherResult;
}
/**
* Sets the fetcher result.
*
* @param \Drupal\feeds\Result\FetcherResultInterface $result
* The fetcher result.
*/
public function setFetcherResult(FetcherResultInterface $result) {
$this->fetcherResult = $result;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventBase:: |
protected | property | The feed being imported. | |
EventBase:: |
public | function | Returns the feed. | |
EventBase:: |
public | function | Constructs an EventBase object. | 6 |
FetchEvent:: |
protected | property | The fetcher result. | |
FetchEvent:: |
public | function | Returns the fetcher result. | |
FetchEvent:: |
public | function | Sets the fetcher result. |