You are here

public function MenuTestController::breadcrumbTitleCallback in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 125
Contains \Drupal\menu_test\Controller\MenuTestController.

Class

MenuTestController
Controller routines for menu_test routes.

Namespace

Drupal\menu_test\Controller

Code

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