You are here

function dvr in Devel 8.2

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

Wrapper for DevelDumperManager::dumpOrExport().

Like dpr(), but uses Variable::export() instead.

See also

\Drupal\devel\DevelDumperManager::dumpOrExport()

File

./devel.module, line 511
This module holds functions useful for Drupal development.

Code

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