function DumperTestController::debug

Same name in other branches
  1. 5.x tests/modules/devel_dumper_test/src/Controller/DumperTestController.php \Drupal\devel_dumper_test\Controller\DumperTestController::debug()

Returns the debug output to test.

Return value

array The render array output.

1 string reference to 'DumperTestController::debug'
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 76

Class

DumperTestController
Class DumperTestController.

Namespace

Drupal\devel_dumper_test\Controller

Code

public function debug() {
    $this->dumper
        ->debug('Test output');
    return [
        '#markup' => 'test',
    ];
}