function kpr

Same name in other branches
  1. 7.x-1.x devel.module \kpr()
  2. 4.x devel.module \kpr()

Wrapper for DevelDumperManager::dumpOrExport().

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

See also

\Drupal\devel\DevelDumperManager::dumpOrExport()

3 string references to 'kpr'
Debug::getFunctions in src/Twig/Extension/Debug.php
DevelDumperBase::getInternalFunctions in src/DevelDumperBase.php
Returns a list of internal functions.
DevelTwigExtensionTest::testDumpFunctionsRegistered in tests/src/Kernel/DevelTwigExtensionTest.php
Tests that the Twig dump functions are registered properly.

File

./devel.module, line 539

Code

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