You are here

public function ThemeTestController::testInfoStylesheets in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 36
Contains \Drupal\theme_test\ThemeTestController.

Class

ThemeTestController
Controller routines for theme test routes.

Namespace

Drupal\theme_test

Code

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