You are here

public function ThemeTestController::testThemeClass 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::testThemeClass()

Controller for testing a namespaced class in a theme.

1 string reference to 'ThemeTestController::testThemeClass'
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 138

Class

ThemeTestController
Controller routines for theme test routes.

Namespace

Drupal\theme_test

Code

public function testThemeClass() {
  return [
    '#theme' => 'theme_test_theme_class',
    '#title' => 'Testing loading a class from a .theme file',
  ];
}