You are here

public function ThemeTestController::suggestionAlterInclude in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/theme_legacy_test/src/ThemeTestController.php \Drupal\theme_legacy_test\ThemeTestController::suggestionAlterInclude()

Menu callback for testing includes with suggestion alter hooks.

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

File

core/modules/system/tests/modules/theme_legacy_test/src/ThemeTestController.php, line 36

Class

ThemeTestController
Controller routines for test routes for legacy theme functions.

Namespace

Drupal\theme_legacy_test

Code

public function suggestionAlterInclude() {
  return [
    '#theme' => 'theme_test_suggestions_include',
  ];
}