You are here

function dpr in Devel 8

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

Wrapper for DevelDumperManager::dumpOrExport().

An alias for the devel.dumper service. Saves carpal tunnel syndrome.

See also

\Drupal\devel\DevelDumperManager::dumpOrExport()

1 call to dpr()
ConfigEditor::buildForm in src/Form/ConfigEditor.php
Form constructor.

File

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

Code

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