function DoctrineDebug::exportAsRenderable
Same name in other branches
- 4.x src/Plugin/Devel/Dumper/DoctrineDebug.php \Drupal\devel\Plugin\Devel\Dumper\DoctrineDebug::exportAsRenderable()
Overrides DevelDumperBase::exportAsRenderable
File
-
src/
Plugin/ Devel/ Dumper/ DoctrineDebug.php, line 46
Class
- DoctrineDebug
- Provides a DoctrineDebug dumper plugin.
Namespace
Drupal\devel\Plugin\Devel\DumperCode
public function exportAsRenderable($input, $name = NULL) {
$output['container'] = [
'#type' => 'details',
'#title' => $name ?: $this->t('Variable'),
'#attached' => [
'library' => [
'devel/devel',
],
],
'#attributes' => [
'class' => [
'container-inline',
'devel-dumper',
'devel-selectable',
],
],
'export' => [
'#markup' => $this->export($input),
],
];
return $output;
}