You are here

protected function Basic::createDeleteStatement in Search API 8

Creates a DELETE statement for this tracker.

Return value

\Drupal\Core\Database\Query\Delete A DELETE Statement.

2 calls to Basic::createDeleteStatement()
Basic::trackAllItemsDeleted in src/Plugin/search_api/tracker/Basic.php
Removes all items from the tracker, or only those of a specific datasource.
Basic::trackItemsDeleted in src/Plugin/search_api/tracker/Basic.php
Removes items from the tracking system for this index.

File

src/Plugin/search_api/tracker/Basic.php, line 177

Class

Basic
Provides a tracker implementation which uses a FIFO-like processing order.

Namespace

Drupal\search_api\Plugin\search_api\tracker

Code

protected function createDeleteStatement() {
  return $this
    ->getDatabaseConnection()
    ->delete('search_api_item')
    ->condition('index_id', $this
    ->getIndex()
    ->id());
}