You are here

function devel_message in Devel 8.2

Same name and namespace in other branches
  1. 8.3 devel.module \devel_message()
  2. 4.x devel.module \devel_message()

Sets a message with a string representation of a variable.

Wrapper for DevelDumperManager::message().

Parameters

mixed $input: The variable to dump.

string $name: (optional) The label to output before variable, defaults to NULL.

string $type: (optional) The message's type. Defaults to 'status'.

string $plugin_id: (optional) The plugin ID, defaults to NULL.

See also

\Drupal\devel\DevelDumperManager::message()

2 string references to 'devel_message'
Debug::getFunctions in src/Twig/Extension/Debug.php
DevelTwigExtensionTest::testDumpFunctionsRegistered in tests/src/Kernel/DevelTwigExtensionTest.php
Tests that the Twig dump functions are registered properly.

File

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

Code

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