You are here

public function DevelDumperManager::dump in Devel 8

Same name and namespace in other branches
  1. 8.3 src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::dump()
  2. 8.2 src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::dump()
  3. 4.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::dump()

Dumps information about a variable.

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.

Overrides DevelDumperManagerInterface::dump

File

src/DevelDumperManager.php, line 72

Class

DevelDumperManager
Class DevelDumperManager.

Namespace

Drupal\devel

Code

public function dump($input, $name = NULL, $plugin_id = NULL) {
  if ($this
    ->hasAccessToDevelInformation()) {
    $this
      ->createInstance($plugin_id)
      ->dump($input, $name);
  }
}