interface CleanableInterface in Feeds 8.3
Interface for plugins that need to perform cleanup tasks after processing.
Hierarchy
- interface \Drupal\feeds\Plugin\Type\CleanableInterface
Expanded class hierarchy of CleanableInterface
All classes that implement CleanableInterface
2 files declare their use of CleanableInterface
- EntityProcessorInterface.php in src/
Plugin/ Type/ Processor/ EntityProcessorInterface.php - LazySubscriber.php in src/
EventSubscriber/ LazySubscriber.php
File
- src/
Plugin/ Type/ CleanableInterface.php, line 12
Namespace
Drupal\feeds\Plugin\TypeView source
interface CleanableInterface {
/**
* Applies an action to an entity to 'clean' it.
*
* An action is applied on an entity for which the source item no longer
* exists in the feed.
*
* An action can be:
* - Deleting the entity;
* - Unpublishing the entity;
* - Or any other action plugin that is applyable.
*
* @param \Drupal\feeds\FeedInterface $feed
* The feed entity.
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity being cleaned.
* @param \Drupal\feeds\Feeds\State\CleanStateInterface $state
* The state object.
*/
public function clean(FeedInterface $feed, EntityInterface $entity, CleanStateInterface $state);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CleanableInterface:: |
public | function | Applies an action to an entity to 'clean' it. | 1 |