summaryrefslogtreecommitdiffstats
path: root/core/includes/database.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/includes/database.inc')
-rw-r--r--core/includes/database.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/includes/database.inc b/core/includes/database.inc
index d4cb593..6891ea9 100644
--- a/core/includes/database.inc
+++ b/core/includes/database.inc
@@ -335,6 +335,7 @@ function db_transaction($name = NULL, array $options = []) {
* \Drupal\Core\Database\Database::setActiveConnection().
*/
function db_set_active($key = 'default') {
+ @trigger_error('db_set_active() is deprecated in Drupal 8.0.x and will be removed before Drupal 9.0.0. Use \Drupal\Core\Database\Database::setActiveConnection() instead. See https://www.drupal.org/node/2944084.', E_USER_DEPRECATED);
return Database::setActiveConnection($key);
}