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

Breadcrumb

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

function DriverSuspension::formatStacktrace

1 call to DriverSuspension::formatStacktrace()
DriverSuspension::suspend in vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php
Returns the value provided to {

File

vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php, line 180

Class

DriverSuspension
@internal

Namespace

Revolt\EventLoop\Internal

Code

private function formatStacktrace(array $trace) : string {
    return \implode("\n", \array_map(static function ($e, $i) {
        $line = "#{$i} ";
        if (isset($e["file"])) {
            $line .= "{$e['file']}:{$e['line']} ";
        }
        if (isset($e["class"], $e["type"])) {
            $line .= $e["class"] . $e["type"];
        }
        return $line . $e["function"] . "()";
    }, $trace, \array_keys($trace)));
}
RSS feed
Powered by Drupal