function Log::getDebugBacktrace

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::getDebugBacktrace()

Gets the debug backtrace.

Wraps the debug_backtrace function to allow mocking results in PHPUnit tests.

Return value

array[] The debug backtrace.

Deprecated

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

See also

https://www.drupal.org/node/3328053

1 call to Log::getDebugBacktrace()
Log::findCaller in core/lib/Drupal/Core/Database/Log.php
Determine the routine that called this query.

File

core/lib/Drupal/Core/Database/Log.php, line 239

Class

Log
Database query logger.

Namespace

Drupal\Core\Database

Code

protected function getDebugBacktrace() {
    @trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3328053', E_USER_DEPRECATED);
    return debug_backtrace();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.