function dvm
Same name in other branches
- 6.x-1.x devel.module \dvm()
- 7.x-1.x devel.module \dvm()
- 8.x-1.x devel.module \dvm()
- 5.x devel.module \dvm()
Wrapper for DevelDumperManager::message().
Displays a Variable::export() variable to the 'message' area of the page.
Uses Drupal\Core\Messenger\MessengerInterface::addMessage()
Parameters
mixed $input: An arbitrary value to output.
string $name: Optional name for identifying the output.
Return value
mixed The unaltered input value.
See also
\Drupal\devel\DevelDumperManager::message()
1 string reference to 'dvm'
- DevelDumperBase::getInternalFunctions in src/
DevelDumperBase.php - Returns a list of internal functions.
File
-
./
devel.module, line 517
Code
function dvm($input, $name = NULL) {
\Drupal::service('devel.dumper')->message($input, $name, MessengerInterface::TYPE_STATUS, 'drupal_variable');
return $input;
}