You are here

public function TestController::html in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php \Drupal\conneg_test\Controller\TestController::html()

Returns a simple render array.

Return value

array

1 string reference to 'TestController::html'
conneg_test.routing.yml in core/modules/system/tests/modules/conneg_test/conneg_test.routing.yml
core/modules/system/tests/modules/conneg_test/conneg_test.routing.yml

File

core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php, line 28

Class

TestController
Test controller for content negotiation tests.

Namespace

Drupal\conneg_test\Controller

Code

public function html() {
  return [
    '#markup' => 'here',
  ];
}