JsDeprecationTestController.php

Same filename and directory in other branches
  1. 11.x core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php
  2. 10 core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php
  3. 9 core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php
  4. 8.9.x core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php

Namespace

Drupal\js_deprecation_test\Controller

File

core/modules/system/tests/modules/js_deprecation_test/src/Controller/JsDeprecationTestController.php

View source
<?php

declare (strict_types=1);
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.