function DevelDumperBase::exportAsRenderable
Same name in other branches
- 4.x src/DevelDumperBase.php \Drupal\devel\DevelDumperBase::exportAsRenderable()
Overrides DevelDumperInterface::exportAsRenderable
2 methods override DevelDumperBase::exportAsRenderable()
- AvailableTestDumper::exportAsRenderable in tests/
modules/ devel_dumper_test/ src/ Plugin/ Devel/ Dumper/ AvailableTestDumper.php - Returns a string representation of a variable wrapped in a render array.
- DoctrineDebug::exportAsRenderable in src/
Plugin/ Devel/ Dumper/ DoctrineDebug.php - Returns a string representation of a variable wrapped in a render array.
File
-
src/
DevelDumperBase.php, line 30
Class
- DevelDumperBase
- Defines a base devel dumper implementation.
Namespace
Drupal\develCode
public function exportAsRenderable($input, $name = NULL) : array {
return [
'#markup' => $this->export($input, $name),
];
}