You are here

public function MenuTestController::menuTestCallback in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::menuTestCallback()
  2. 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 70

Class

MenuTestController
Controller routines for menu_test routes.

Namespace

Drupal\menu_test\Controller

Code

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