class TestController

Test controller to provide a callback for the contextual link.

Hierarchy

Expanded class hierarchy of TestController

File

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

Namespace

Drupal\contextual_test\Controller
View source
class TestController {
  
  /**
   * Callback for the contextual link.
   *
   * @return array
   *   Render array.
   */
  public function render() {
    return [
      '#type' => 'markup',
      '#markup' => 'Everything is contextual!',
    ];
  }

}

Members

Title Sort descending Modifiers Object type Summary
TestController::render public function Callback for the contextual link.

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