You are here

public static function SuggestionStorage::deleteContentSuggestion in Autocomplete Search Suggestions 8

Same name and namespace in other branches
  1. 8.2 src/SuggestionStorage.php \Drupal\suggestion\SuggestionStorage::deleteContentSuggestion()
  2. 3.0.x src/SuggestionStorage.php \Drupal\suggestion\SuggestionStorage::deleteContentSuggestion()

Delete all content suggestions.

Return value

object A Delete object.

1 call to SuggestionStorage::deleteContentSuggestion()
SuggestionHelper::index in src/SuggestionHelper.php
Create a suggestion index from content titles.

File

src/SuggestionStorage.php, line 22

Class

SuggestionStorage
Database CRUD.

Namespace

Drupal\suggestion

Code

public static function deleteContentSuggestion() {
  return db_delete('suggestion')
    ->condition('src', self::CONTENT_BIT)
    ->execute();
}