You are here

public function CleanState::removeItem in Feeds 8.3

Removes a specific item from the list.

Parameters

mixed $entity_id: The ID of the entity to remove.

Overrides CleanStateInterface::removeItem

1 call to CleanState::removeItem()
CleanState::nextEntity in src/Feeds/State/CleanState.php
Returns the next entity in the list and removes the ID from the list.

File

src/Feeds/State/CleanState.php, line 130

Class

CleanState
State for the clean stage.

Namespace

Drupal\feeds\Feeds\State

Code

public function removeItem($entity_id) {
  $this->connection
    ->delete(static::TABLE_NAME)
    ->condition('feed_id', $this->feedId)
    ->condition('entity_id', $entity_id)
    ->execute();
  $this->total = $this
    ->count();
  $this
    ->progress($this->total, $this->updated);
}