You are here

public function DevelDumperBase::dump in Devel 8

Same name and namespace in other branches
  1. 8.3 src/DevelDumperBase.php \Drupal\devel\DevelDumperBase::dump()
  2. 8.2 src/DevelDumperBase.php \Drupal\devel\DevelDumperBase::dump()
  3. 4.x src/DevelDumperBase.php \Drupal\devel\DevelDumperBase::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.

Overrides DevelDumperInterface::dump

4 methods override DevelDumperBase::dump()
AvailableTestDumper::dump in tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php
Dumps information about a variable.
ChromePhp::dump in src/Plugin/Devel/Dumper/ChromePhp.php
Dumps information about a variable.
FirePhp::dump in src/Plugin/Devel/Dumper/FirePhp.php
Dumps information about a variable.
NotAvailableTestDumper::dump in tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php
Dumps information about a variable.

File

src/DevelDumperBase.php, line 21

Class

DevelDumperBase
Defines a base devel dumper implementation.

Namespace

Drupal\devel

Code

public function dump($input, $name = NULL) {
  echo (string) $this
    ->export($input, $name);
}