You are here

function devel_export in Devel 8.2

Same name and namespace in other branches
  1. 8.3 devel.module \devel_export()
  2. 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 322
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);
}