public function DatabaseCompatibilityHandlerInterface::orderByRandom in Search API 8
Applies a random sort to the query.
Parameters
\Drupal\Core\Database\Query\SelectInterface $query: The search query.
1 method overrides DatabaseCompatibilityHandlerInterface::orderByRandom()
- GenericDatabase::orderByRandom in modules/
search_api_db/ src/ DatabaseCompatibility/ GenericDatabase.php - Applies a random sort to the query.
File
- modules/
search_api_db/ src/ DatabaseCompatibility/ DatabaseCompatibilityHandlerInterface.php, line 80
Class
- DatabaseCompatibilityHandlerInterface
- Bundles methods for resolving DBMS-specific differences.
Namespace
Drupal\search_api_db\DatabaseCompatibilityCode
public function orderByRandom(SelectInterface $query);