You are here

public function TestController::render in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contextual/tests/modules/contextual_test/src/Controller/TestController.php \Drupal\contextual_test\Controller\TestController::render()
  2. 9 core/modules/contextual/tests/modules/contextual_test/src/Controller/TestController.php \Drupal\contextual_test\Controller\TestController::render()

Callback for the contextual link.

Return value

array Render array.

1 string reference to 'TestController::render'
contextual_test.routing.yml in core/modules/contextual/tests/modules/contextual_test/contextual_test.routing.yml
core/modules/contextual/tests/modules/contextual_test/contextual_test.routing.yml

File

core/modules/contextual/tests/modules/contextual_test/src/Controller/TestController.php, line 16

Class

TestController
Test controller to provide a callback for the contextual link.

Namespace

Drupal\contextual_test\Controller

Code

public function render() {
  return [
    '#type' => 'markup',
    '#markup' => 'Everything is contextual!',
  ];
}