interface DevelDumperInterface in Devel 8
Same name and namespace in other branches
- 8.3 src/DevelDumperInterface.php \Drupal\devel\DevelDumperInterface
- 8.2 src/DevelDumperInterface.php \Drupal\devel\DevelDumperInterface
- 4.x src/DevelDumperInterface.php \Drupal\devel\DevelDumperInterface
Base interface definition for DevelDumper plugins.
Hierarchy
- interface \Drupal\devel\DevelDumperInterface
Expanded class hierarchy of DevelDumperInterface
All classes that implement DevelDumperInterface
See also
\Drupal\devel\Annotation\DevelDumper
\Drupal\devel\DevelDumperPluginManager
File
- src/DevelDumperInterface.php, line 13 
Namespace
Drupal\develView source
interface DevelDumperInterface {
  /**
   * Dumps information about a variable.
   *
   * @param mixed $input
   *   The variable to dump.
   * @param string $name
   *   (optional) The label to output before variable, defaults to NULL.
   */
  public function dump($input, $name = NULL);
  /**
   * Returns a string representation of a variable.
   *
   * @param mixed $input
   *   The variable to export.
   * @param string $name
   *   (optional) The label to output before variable, defaults to NULL.
   *
   * @return string
   *   String representation of a variable.
   */
  public function export($input, $name = NULL);
  /**
   * Returns a string representation of a variable wrapped in a render array.
   *
   * @param mixed $input
   *   The variable to export.
   * @param string $name
   *   (optional) The label to output before variable, defaults to NULL.
   *
   * @return array
   *   String representation of a variable wrapped in a render array.
   */
  public function exportAsRenderable($input, $name = NULL);
  /**
   * Checks if requirements for this plugin are satisfied.
   *
   * @return bool
   *   TRUE is requirements are satisfied, FALSE otherwise.
   */
  public static function checkRequirements();
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| DevelDumperInterface:: | public static | function | Checks if requirements for this plugin are satisfied. | 8 | 
| DevelDumperInterface:: | public | function | Dumps information about a variable. | 1 | 
| DevelDumperInterface:: | public | function | Returns a string representation of a variable. | 8 | 
| DevelDumperInterface:: | public | function | Returns a string representation of a variable wrapped in a render array. | 1 | 
