function dpm in Devel 8
Same name and namespace in other branches
- 8.3 devel.module \dpm()
- 8.2 devel.module \dpm()
- 5 devel.module \dpm()
- 6 devel.module \dpm()
- 7 devel.module \dpm()
- 4.x devel.module \dpm()
Wrapper for DevelDumperManager::message().
Prints a 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.
string $type: Optional message type for drupal_set_message(), defaults to 'status'.
Return value
input The unaltered input value.
See also
\Drupal\devel\DevelDumperManager::message()
5 calls to dpm()
- backtrace_error_handler in ./
devel.module - Displays backtrace showing the route of calls to the current error.
- devel_page_attachments_alter in ./
devel.module - Implements hook_page_attachments_alter().
- dpq in ./
devel.module - Prints a SQL string from a DBTNG Select object. Includes quoted arguments.
- dsm in ./
devel.module - An alias for dpm(), for historic reasons.
- ExecutePHP::submitForm in src/
Form/ ExecutePHP.php - Form submission handler.
2 string references to 'dpm'
- 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 367 - This module holds functions useful for Drupal development. Please contribute!
Code
function dpm($input, $name = NULL, $type = 'status') {
\Drupal::service('devel.dumper')
->message($input, $name, $type);
return $input;
}