class JsErrorsTestController in Drupal 10
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/js_errors_test/src/Controller/JsErrorsTestController.php \Drupal\js_errors_test\Controller\JsErrorsTestController
Test Controller loading js_errors_test/errors_test library.
Hierarchy
- class \Drupal\js_errors_test\Controller\JsErrorsTestController
Expanded class hierarchy of JsErrorsTestController
File
- core/
modules/ system/ tests/ modules/ js_errors_test/ src/ Controller/ JsErrorsTestController.php, line 8
Namespace
Drupal\js_errors_test\ControllerView source
class JsErrorsTestController {
/**
* Renders page that has js_errors_test/errors_test library attached.
*
* @return string[][]
* Render array.
*/
public function jsErrorsTest() : array {
return [
'#attached' => [
'library' => [
'js_errors_test/errors_test',
],
],
];
}
}Members
|
Name |
Modifiers | Type | Description | Overrides |
|---|---|---|---|---|
|
JsErrorsTestController:: |
public | function | Renders page that has js_errors_test/errors_test library attached. |