function JsDeprecationTestController::jsDeprecationTest

Same name in other branches
  1. 9 core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php \Drupal\js_deprecation_test\Controller\JsDeprecationTestController::jsDeprecationTest()
  2. 10 core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php \Drupal\js_deprecation_test\Controller\JsDeprecationTestController::jsDeprecationTest()
  3. 11.x 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\Controller

Code

public function jsDeprecationTest() {
    return [
        '#attached' => [
            'library' => [
                'js_deprecation_test/deprecation_test',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.