public function Basic::getDatabaseConnection in Search API 8
Retrieves the database connection.
Return value
\Drupal\Core\Database\Connection The database connection used by this plugin.
File
- src/
Plugin/ search_api/ tracker/ Basic.php, line 72
Class
- Basic
- Provides a tracker implementation which uses a FIFO-like processing order.
Namespace
Drupal\search_api\Plugin\search_api\trackerCode
public function getDatabaseConnection() {
return $this->connection ?: \Drupal::database();
}