JsDeprecationTestController.php
Same filename in other branches
- 8.9.x core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php
- 10 core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php
- 11.x core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php
Namespace
Drupal\js_deprecation_test\ControllerFile
-
core/
modules/ system/ tests/ modules/ js_deprecation_test/ src/ Controller/ JsDeprecationTestController.php
View source
<?php
namespace Drupal\js_deprecation_test\Controller;
/**
* Test Controller to show message links.
*/
class JsDeprecationTestController {
/**
* Renders page that has js_deprecation_test/deprecation library attached.
*
* @return array
* Render array.
*/
public function jsDeprecationTest() {
return [
'#attached' => [
'library' => [
'js_deprecation_test/deprecation_test',
],
],
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
JsDeprecationTestController | Test Controller to show message links. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.