function TestingExampleController::phpUnitDescription

Generate a render array for the Simpletest description.

Return value

array A render array.

1 string reference to 'TestingExampleController::phpUnitDescription'
testing_example.routing.yml in modules/testing_example/testing_example.routing.yml
modules/testing_example/testing_example.routing.yml

File

modules/testing_example/src/Controller/TestingExampleController.php, line 63

Class

TestingExampleController
Controller for testing_example module.

Namespace

Drupal\testing_example\Controller

Code

public function phpUnitDescription() {
  $template_file = $this->moduleExtensionList
    ->getPath('testing_example') . '/templates/phpunit.description.html.twig';
  $build = [
    'description' => [
      '#type' => 'inline_template',
      '#template' => file_get_contents($template_file),
    ],
  ];
  return $build;
}