function DumperTestController::dump
Same name in other branches
- 4.x tests/modules/devel_dumper_test/src/Controller/DumperTestController.php \Drupal\devel_dumper_test\Controller\DumperTestController::dump()
Returns the dump output to test.
Return value
array The render array output.
1 string reference to 'DumperTestController::dump'
- devel_dumper_test.routing.yml in tests/
modules/ devel_dumper_test/ devel_dumper_test.routing.yml - tests/modules/devel_dumper_test/devel_dumper_test.routing.yml
File
-
tests/
modules/ devel_dumper_test/ src/ Controller/ DumperTestController.php, line 37
Class
- DumperTestController
- Controller class for dumper_test module.
Namespace
Drupal\devel_dumper_test\ControllerCode
public function dump() : array {
$this->dumper
->dump('Test output');
return [
'#markup' => 'test',
];
}