class ManyAssetsTestController

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/many_assets_test/src/Controller/ManyAssetsTestController.php \Drupal\many_assets_test\Controller\ManyAssetsTestController

Hierarchy

Expanded class hierarchy of ManyAssetsTestController

File

core/modules/system/tests/modules/many_assets_test/src/Controller/ManyAssetsTestController.php, line 7

Namespace

Drupal\many_assets_test\Controller
View source
class ManyAssetsTestController extends ControllerBase {
  
  /**
   * The render array of the assets testing page.
   *
   * @return array
   */
  public function build() {
    return [
      '#markup' => 'I am a page that tests loading order of many dependencies',
      '#attached' => [
        'library' => [
          'many_assets_test/weighted',
          'many_assets_test/many-dependencies',
          'many_assets_test/weighted_again',
        ],
      ],
    ];
  }

}

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