function MenuTestController::menuTestCallback

Same name in other branches
  1. 9 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::menuTestCallback()
  2. 8.9.x core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::menuTestCallback()
  3. 10 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::menuTestCallback()

Some known placeholder content which can be used for testing.

Return value

string A string that can be used for comparison.

1 string reference to 'MenuTestController::menuTestCallback'
menu_test.routing.yml in core/modules/system/tests/modules/menu_test/menu_test.routing.yml
core/modules/system/tests/modules/menu_test/menu_test.routing.yml

File

core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php, line 72

Class

MenuTestController
Controller routines for menu_test routes.

Namespace

Drupal\menu_test\Controller

Code

public function menuTestCallback() {
    return [
        '#markup' => 'This is the menuTestCallback content.',
    ];
}

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