ManyAssetsTestController.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/many_assets_test/src/Controller/ManyAssetsTestController.php
  2. 11.x core/modules/system/tests/modules/many_assets_test/src/Controller/ManyAssetsTestController.php

Namespace

Drupal\many_assets_test\Controller

File

core/modules/system/tests/modules/many_assets_test/src/Controller/ManyAssetsTestController.php

View source
<?php

namespace Drupal\many_assets_test\Controller;

use Drupal\Core\Controller\ControllerBase;
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',
                ],
            ],
        ];
    }

}

Classes

Title Deprecated Summary
ManyAssetsTestController

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