3 namespace Drupal\devel;
6 * Interface DevelDumperManagerInterface
8 interface DevelDumperManagerInterface {
11 * Dumps information about a variable.
14 * The variable to dump.
16 * (optional) The label to output before variable, defaults to NULL.
17 * @param string $plugin_id
18 * (optional) The plugin ID, defaults to NULL.
20 public function dump($input, $name = NULL, $plugin_id = NULL);
23 * Returns a string representation of a variable.
26 * The variable to dump.
28 * (optional) The label to output before variable, defaults to NULL.
29 * @param string $plugin_id
30 * (optional) The plugin ID, defaults to NULL.
33 * String representation of a variable.
35 public function export($input, $name = NULL, $plugin_id = NULL);
38 * Sets a message with a string representation of a variable.
41 * The variable to dump.
43 * (optional) The label to output before variable, defaults to NULL.
45 * (optional) The message's type. Defaults to 'status'.
46 * @param string $plugin_id
47 * (optional) The plugin ID, defaults to NULL.
49 public function message($input, $name = NULL, $type = 'status', $plugin_id = NULL);
52 * Logs a variable to a drupal_debug.txt in the site's temp directory.
55 * The variable to log to the drupal_debug.txt log file.
57 * (optional) If set, a label to output before $data in the log file.
58 * @param string $plugin_id
59 * (optional) The plugin ID, defaults to NULL.
62 * Empty if successful, FALSE if the log file could not be written.
65 * @see http://drupal.org/node/314112
67 public function debug($input, $name = NULL, $plugin_id = NULL);
70 * Wrapper for ::dump() and ::export().
73 * The variable to dump.
75 * (optional) The label to output before variable, defaults to NULL.
77 * (optional) Whether return string representation of a variable.
78 * @param string $plugin_id
79 * (optional) The plugin ID, defaults to NULL.
82 * String representation of a variable if $export is set to TRUE,
85 public function dumpOrExport($input, $name = NULL, $export = TRUE, $plugin_id = NULL);
88 * Returns a render array representation of a variable.
91 * The variable to export.
93 * (optional) The label to output before variable, defaults to NULL.
94 * @param string $plugin_id
95 * (optional) The plugin ID, defaults to NULL.
98 * String representation of a variable wrapped in a render array.
100 public function exportAsRenderable($input, $name = NULL, $plugin_id = NULL);