function devel_debug

Same name in other branches
  1. 4.x devel.module \devel_debug()

Logs a variable to a drupal_debug.txt in the site's temp directory.

Wrapper for DevelDumperManager::debug().

Parameters

mixed $input: The variable to log to the drupal_debug.txt log file.

string $name: (optional) If set, a label to output before $data in the log file.

string $plugin_id: (optional) The plugin ID, defaults to NULL.

Return value

null|false Empty if successful, FALSE if the log file could not be written.

See also

\Drupal\devel\DevelDumperManager::debug()

1 string reference to 'devel_debug'
Debug::getName in src/Twig/Extension/Debug.php

File

./devel.module, line 363

Code

function devel_debug($input, $name = NULL, $plugin_id = NULL) {
    return Drupal::service('devel.dumper')->debug($input, $name, $plugin_id);
}