function dvm in Devel 8
Same name and namespace in other branches
- 8.3 devel.module \dvm()
- 8.2 devel.module \dvm()
- 5 devel.module \dvm()
- 6 devel.module \dvm()
- 7 devel.module \dvm()
- 4.x devel.module \dvm()
Wrapper for DevelDumperManager::message().
Displays a Variable::export() variable to the 'message' area of the page.
Uses drupal_set_message().
Parameters
$input: An arbitrary value to output.
string $name: Optional name for identifying the output.
Return value
input The unaltered input value.
See also
\Drupal\devel\DevelDumperManager::message()
File
- ./
devel.module, line 389 - This module holds functions useful for Drupal development. Please contribute!
Code
function dvm($input, $name = NULL) {
\Drupal::service('devel.dumper')
->message($input, $name, 'status', 'drupal_variable');
return $input;
}