function ThemeTestController::suggestionAlter

Menu callback for testing suggestion alter hooks with template files.

1 string reference to 'ThemeTestController::suggestionAlter'
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 85

Class

ThemeTestController
Controller routines for theme test routes.

Namespace

Drupal\theme_test

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.