You are here

public function MenuTestController::breadcrumbTitleCallback in Drupal 10

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::breadcrumbTitleCallback()
  2. 9 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::breadcrumbTitleCallback()

A title callback for XSS breadcrumb check.

Return value

string

1 string reference to 'MenuTestController::breadcrumbTitleCallback'
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 119

Class

MenuTestController
Controller routines for menu_test routes.

Namespace

Drupal\menu_test\Controller

Code

public function breadcrumbTitleCallback() {
  return '<script>alert(123);</script>';
}