function ThemeTestController::functionSuggestionAlter

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/theme_legacy_test/src/ThemeTestController.php \Drupal\theme_legacy_test\ThemeTestController::functionSuggestionAlter()

Menu callback for testing suggestion alter hooks with theme functions.

1 string reference to 'ThemeTestController::functionSuggestionAlter'
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 29

Class

ThemeTestController
Controller routines for test routes for legacy theme functions.

Namespace

Drupal\theme_legacy_test

Code

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

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