You are here

function kpr in Devel 8

Same name and namespace in other branches
  1. 8.3 devel.module \kpr()
  2. 8.2 devel.module \kpr()
  3. 5 devel.module \kpr()
  4. 6 devel.module \kpr()
  5. 7 devel.module \kpr()
  6. 4.x devel.module \kpr()

Wrapper for DevelDumperManager::dumpOrExport().

An alias for devel_dump(). Saves carpal tunnel syndrome.

See also

\Drupal\devel\DevelDumperManager::dumpOrExport()

5 calls to kpr()
backtrace_error_handler in ./devel.module
Displays backtrace showing the route of calls to the current error.
dargs in ./devel.module
Prints the arguments passed into the current function.
ddebug_backtrace in ./devel.module
Prints the function call stack.
devel_render in ./devel.module
Prints a renderable array element to the screen using kprint_r().
SystemStateEdit::buildForm in src/Form/SystemStateEdit.php
Form constructor.
2 string references to 'kpr'
Debug::getFunctions in src/Twig/Extension/Debug.php
DevelTwigExtensionTest::testDumpFunctionsRegistered in tests/src/Kernel/DevelTwigExtensionTest.php
Tests that the Twig dump functions are registered properly.

File

./devel.module, line 419
This module holds functions useful for Drupal development. Please contribute!

Code

function kpr($input, $export = FALSE, $name = NULL) {
  return \Drupal::service('devel.dumper')
    ->dumpOrExport($input, $name, $export);
}