protected function Basic::createInsertStatement in Search API 8
Creates an INSERT statement for this tracker.
Return value
\Drupal\Core\Database\Query\Insert An INSERT statement.
1 call to Basic::createInsertStatement()
- Basic::trackItemsInserted in src/
Plugin/ search_api/ tracker/ Basic.php - Inserts new items into the tracking system for this index.
File
- src/
Plugin/ search_api/ tracker/ Basic.php, line 155
Class
- Basic
- Provides a tracker implementation which uses a FIFO-like processing order.
Namespace
Drupal\search_api\Plugin\search_api\trackerCode
protected function createInsertStatement() {
return $this
->getDatabaseConnection()
->insert('search_api_item')
->fields([
'index_id',
'datasource',
'item_id',
'changed',
'status',
]);
}