function TestController::render

Same name in other branches
  1. 9 core/modules/contextual/tests/modules/contextual_test/src/Controller/TestController.php \Drupal\contextual_test\Controller\TestController::render()
  2. 8.9.x core/modules/contextual/tests/modules/contextual_test/src/Controller/TestController.php \Drupal\contextual_test\Controller\TestController::render()
  3. 10 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 18

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!',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.