public function JsDeprecationTestController::jsDeprecationTest in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php \Drupal\js_deprecation_test\Controller\JsDeprecationTestController::jsDeprecationTest()
Renders page that has js_deprecation_test/deprecation library attached.
Return value
array Render array.
1 string reference to 'JsDeprecationTestController::jsDeprecationTest'
- js_deprecation_test.routing.yml in core/
modules/ system/ tests/ modules/ js_deprecation_test/ js_deprecation_test.routing.yml - core/modules/system/tests/modules/js_deprecation_test/js_deprecation_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ js_deprecation_test/ src/ Controller/ JsDeprecationTestController.php, line 16
Class
- JsDeprecationTestController
- Test Controller to show message links.
Namespace
Drupal\js_deprecation_test\ControllerCode
public function jsDeprecationTest() {
return [
'#attached' => [
'library' => [
'js_deprecation_test/deprecation_test',
],
],
];
}