protected function Check::database in Security Review 8
Returns the database connection.
Return value
\Drupal\Core\Database\Connection Database connection.
File
- src/
Check.php, line 488
Class
- Check
- Defines a security check.
Namespace
Drupal\security_reviewCode
protected function database() {
return $this->container
->get('database');
}