function dpm
Same name in other branches
- 6.x-1.x devel.module \dpm()
- 7.x-1.x devel.module \dpm()
- 8.x-1.x devel.module \dpm()
- 5.x devel.module \dpm()
Wrapper for DevelDumperManager::message().
Prints a 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.
string $type: Optional message type see MessengerInterface, defaults to TYPE_STATUS.
Return value
input The unaltered input value.
See also
\Drupal\devel\DevelDumperManager::message()
4 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.
3 string references to 'dpm'
- Debug::getFunctions in src/
Twig/ Extension/ Debug.php - DevelDumperBase::getInternalFunctions in src/
DevelDumperBase.php - Returns a list of internal functions.
- DevelTwigExtensionTest::testDumpFunctionsRegistered in tests/
src/ Kernel/ DevelTwigExtensionTest.php - Tests that the Twig dump functions are registered properly.
File
-
./
devel.module, line 495
Code
function dpm($input, $name = NULL, $type = MessengerInterface::TYPE_STATUS) {
\Drupal::service('devel.dumper')->message($input, $name, $type);
return $input;
}