function ThemeTestController::testInfoStylesheets

Same name in other branches
  1. 9 core/modules/system/tests/modules/theme_test/src/ThemeTestController.php \Drupal\theme_test\ThemeTestController::testInfoStylesheets()
  2. 8.9.x core/modules/system/tests/modules/theme_test/src/ThemeTestController.php \Drupal\theme_test\ThemeTestController::testInfoStylesheets()
  3. 11.x core/modules/system/tests/modules/theme_test/src/ThemeTestController.php \Drupal\theme_test\ThemeTestController::testInfoStylesheets()

Adds stylesheets to test theme .info.yml property processing.

Return value

array A render array containing custom stylesheets.

File

core/modules/system/tests/modules/theme_test/src/ThemeTestController.php, line 19

Class

ThemeTestController
Controller routines for theme test routes.

Namespace

Drupal\theme_test

Code

public function testInfoStylesheets() {
    return [
        '#attached' => [
            'library' => [
                'theme_test/theme_stylesheets_override_and_remove_test',
            ],
        ],
    ];
}

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