You are here

TestController.php in Drupal 9

File

core/modules/contextual/tests/modules/contextual_test/src/Controller/TestController.php
View source
<?php

namespace Drupal\contextual_test\Controller;


/**
 * Test controller to provide a callback for the contextual link.
 */
class TestController {

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

}

Classes

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