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. 10 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.

1 string reference to 'ThemeTestController::testInfoStylesheets'
theme_test.routing.yml in core/modules/system/tests/modules/theme_test/theme_test.routing.yml
core/modules/system/tests/modules/theme_test/theme_test.routing.yml

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.