You are here

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

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

Truncate the suggestion table.

Return value

object A new TruncateQuery object for this connection.

1 call to SuggestionStorage::truncateSuggestion()
SuggestionIndexForm::submitForm in src/Form/SuggestionIndexForm.php
AJAX callback for the indexing form.

File

src/SuggestionStorage.php, line 285

Class

SuggestionStorage
Database CRUD.

Namespace

Drupal\suggestion

Code

public static function truncateSuggestion() {
  return db_truncate('suggestion')
    ->execute();
}