class JsDeprecationTestController

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
  2. 8.9.x core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php \Drupal\js_deprecation_test\Controller\JsDeprecationTestController
  3. 10 core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php \Drupal\js_deprecation_test\Controller\JsDeprecationTestController

Test Controller to show message links.

Hierarchy

Expanded class hierarchy of JsDeprecationTestController

File

core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php, line 10

Namespace

Drupal\js_deprecation_test\Controller
View source
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',
                ],
            ],
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary
JsDeprecationTestController::jsDeprecationTest public function Renders page that has js_deprecation_test/deprecation library attached.

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