function dvm

Same name in other branches
  1. 6.x-1.x devel.module \dvm()
  2. 7.x-1.x devel.module \dvm()
  3. 4.x devel.module \dvm()
  4. 5.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

Code

function dvm($input, $name = NULL) {
    \Drupal::service('devel.dumper')->message($input, $name, 'status', 'drupal_variable');
    return $input;
}