3 namespace Drupal\devel;
6 * Base interface definition for DevelDumper plugins.
8 * @see \Drupal\devel\Annotation\DevelDumper
9 * @see \Drupal\devel\DevelDumperPluginManager
10 * @see \Drupal\devel\DevelDumperBase
13 interface DevelDumperInterface {
16 * Dumps information about a variable.
19 * The variable to dump.
21 * (optional) The label to output before variable, defaults to NULL.
23 public function dump($input, $name = NULL);
26 * Returns a string representation of a variable.
29 * The variable to export.
31 * (optional) The label to output before variable, defaults to NULL.
34 * String representation of a variable.
36 public function export($input, $name = NULL);
39 * Returns a string representation of a variable wrapped in a render array.
42 * The variable to export.
44 * (optional) The label to output before variable, defaults to NULL.
47 * String representation of a variable wrapped in a render array.
49 public function exportAsRenderable($input, $name = NULL);
52 * Checks if requirements for this plugin are satisfied.
55 * TRUE is requirements are satisfied, FALSE otherwise.
57 public static function checkRequirements();