Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Connection.php

function Connection::getDebugBacktrace

Gets the debug backtrace.

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

Return value

array[] The debug backtrace.

1 call to Connection::getDebugBacktrace()
Connection::findCallerFromDebugBacktrace in core/lib/Drupal/Core/Database/Connection.php
Determine the last non-database method that called the database API.

File

core/lib/Drupal/Core/Database/Connection.php, line 1609

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

protected function getDebugBacktrace() : array {
    // @todo Allow a backtrace including all arguments as an option.
    //   https://www.drupal.org/project/drupal/issues/3401906
    return debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal