function dargs

Same name in other branches
  1. 6.x-1.x devel.module \dargs()
  2. 7.x-1.x devel.module \dargs()
  3. 8.x-1.x devel.module \dargs()
  4. 4.x devel.module \dargs()

Prints the arguments passed into the current function.

1 string reference to 'dargs'
DevelDumperBase::getInternalFunctions in src/DevelDumperBase.php
Returns a list of internal functions.

File

./devel.module, line 559

Code

function dargs($always = TRUE) {
    static $printed;
    if ($always || !$printed) {
        $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
        print Drupal::service('devel.dumper')->dumpOrExport(input: $bt[1]['args']);
        $printed = TRUE;
    }
}