public function DevelDumperBase::dump in Devel 8
Same name and namespace in other branches
- 8.3 src/DevelDumperBase.php \Drupal\devel\DevelDumperBase::dump()
- 8.2 src/DevelDumperBase.php \Drupal\devel\DevelDumperBase::dump()
- 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\develCode
public function dump($input, $name = NULL) {
echo (string) $this
->export($input, $name);
}