function ItemsImporter::delete

Same name in other branches
  1. 8.9.x core/modules/aggregator/src/ItemsImporter.php \Drupal\aggregator\ItemsImporter::delete()

Overrides ItemsImporterInterface::delete

File

core/modules/aggregator/src/ItemsImporter.php, line 75

Class

ItemsImporter
Defines an importer of aggregator items.

Namespace

Drupal\aggregator

Code

public function delete(FeedInterface $feed) {
    foreach ($this->processorManager
        ->getDefinitions() as $id => $definition) {
        $this->processorManager
            ->createInstance($id)
            ->delete($feed);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.