class CleanEvent in Feeds 8.3
Fired to begin cleaning.
Hierarchy
- class \Drupal\feeds\Event\EventBase extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\feeds\Event\CleanEvent
Expanded class hierarchy of CleanEvent
3 files declare their use of CleanEvent
- FeedsExecutable.php in src/
FeedsExecutable.php - FeedsSubscriber.php in tests/
modules/ feeds_test_events/ src/ EventSubscriber/ FeedsSubscriber.php - LazySubscriber.php in src/
EventSubscriber/ LazySubscriber.php
File
- src/
Event/ CleanEvent.php, line 11
Namespace
Drupal\feeds\EventView source
class CleanEvent extends EventBase {
/**
* The entity to clean.
*
* @var \Drupal\Core\Entity\EntityInterface
*/
protected $entity;
/**
* Constructs a CleanEvent object.
*
* @param \Drupal\feeds\FeedInterface $feed
* The feed.
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity to clean.
*/
public function __construct(FeedInterface $feed, EntityInterface $entity) {
$this->feed = $feed;
$this->entity = $entity;
}
/**
* Returns the entity to clean.
*
* @return \Drupal\Core\Entity\EntityInterface
* The entity to clean.
*/
public function getEntity() {
return $this->entity;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CleanEvent:: |
protected | property | The entity to clean. | |
CleanEvent:: |
public | function | Returns the entity to clean. | |
CleanEvent:: |
public | function |
Constructs a CleanEvent object. Overrides EventBase:: |
|
EventBase:: |
protected | property | The feed being imported. | |
EventBase:: |
public | function | Returns the feed. |