You are here

public function ThemeTestController::testInfoStylesheets in Drupal 9

Same name and namespace in other branches
  1. 8 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',
      ],
    ],
  ];
}