function devel_export in Devel 8.3
Same name and namespace in other branches
- 8.2 devel.module \devel_export()
- 4.x devel.module \devel_export()
Returns a string representation of a variable.
Wrapper for DevelDumperManager::export().
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.
Return value
string String representation of a variable.
See also
\Drupal\devel\DevelDumperManager::export()
File
- ./
devel.module, line 321 - This module holds functions useful for Drupal development.
Code
function devel_export($input, $name = NULL, $plugin_id = NULL) {
return \Drupal::service('devel.dumper')
->export($input, $name, $plugin_id);
}