function devel_dump in Devel 8.3
Same name and namespace in other branches
- 8.2 devel.module \devel_dump()
- 4.x devel.module \devel_dump()
Dumps information about a variable.
Wrapper for DevelDumperManager::dump().
Parameters
mixed $input: The variable to dump.
string $name: (optional) The label to output before variable, defaults to NULL.
string $plugin_id: (optional) The plugin ID, defaults to NULL.
See also
\Drupal\devel\DevelDumperManager::dump()
2 string references to 'devel_dump'
- 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 300 - This module holds functions useful for Drupal development.
Code
function devel_dump($input, $name = NULL, $plugin_id = NULL) {
\Drupal::service('devel.dumper')
->dump($input, $name, $plugin_id);
}