function Log::removeDatabaseEntries

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

Removes database related calls from a backtrace array.

Parameters

array $backtrace: A standard PHP backtrace. Passed by reference.

string $driver_namespace: The PHP namespace of the database driver.

Return value

array The cleaned backtrace array.

Deprecated

in drupal:10.1.0 and is removed from drupal:11.0.0. Use Connection::removeDatabaseEntriesFromDebugBacktrace().

See also

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

1 call to Log::removeDatabaseEntries()
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 220

Class

Log
Database query logger.

Namespace

Drupal\Core\Database

Code

public static function removeDatabaseEntries(array $backtrace, string $driver_namespace) : array {
    @trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Connection::removeDatabaseEntriesFromDebugBacktrace(). See https://www.drupal.org/node/3328053', E_USER_DEPRECATED);
    return Connection::removeDatabaseEntriesFromDebugBacktrace($backtrace, $driver_namespace);
}

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