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