public static function SuggestionStorage::updateContentSrc in Autocomplete Search Suggestions 3.0.x
Same name and namespace in other branches
- 8.2 src/SuggestionStorage.php \Drupal\suggestion\SuggestionStorage::updateContentSrc()
- 8 src/SuggestionStorage.php \Drupal\suggestion\SuggestionStorage::updateContentSrc()
Remove the content bit from the source bitmap.
Return value
object An Update object.
1 call to SuggestionStorage::updateContentSrc()
- SuggestionHelper::index in src/
SuggestionHelper.php - Create a suggestion index from content titles.
File
- src/
SuggestionStorage.php, line 308
Class
- SuggestionStorage
- Database CRUD.
Namespace
Drupal\suggestionCode
public static function updateContentSrc() {
return \Drupal::database()
->update('suggestion')
->expression('src', 'src & :src', [
':src' => intval(self::PRIORITY_BIT | self::SURFER_BIT),
])
->condition('src', self::CONTENT_BIT, '&')
->execute();
}