function Log::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::__construct()
- 8.9.x core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::__construct()
- 10 core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::__construct()
Constructor.
Parameters
$key: The database connection key for which to enable logging.
File
-
core/
lib/ Drupal/ Core/ Database/ Log.php, line 49
Class
- Log
- Database query logger.
Namespace
Drupal\Core\DatabaseCode
public function __construct($key = 'default') {
$this->connectionKey = $key;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.