You are here

public function ThemeTestController::testInfoStylesheets in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/theme_test/src/ThemeTestController.php \Drupal\theme_test\ThemeTestController::testInfoStylesheets()
  2. 9 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',
      ],
    ],
  ];
}