function dvm

Same name in other branches
  1. 7.x-1.x devel.module \dvm()
  2. 4.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|null $name: Optional name for identifying the output.

bool $load_dependencies: Optional load dependencies if an entity is passed.

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 505

Code

function dvm(mixed $input, ?string $name = NULL, bool $load_dependencies = FALSE) : mixed {
    Drupal::service('devel.dumper')->message(input: $input, name: $name, plugin_id: 'drupal_variable', load_references: $load_dependencies);
    return $input;
}