function test_legacy_theme_theme_suggestions_theme_test_function_suggestions_alter
Same name and namespace in other branches
- 8.9.x core/modules/system/tests/themes/test_legacy_theme/test_legacy_theme.theme \test_legacy_theme_theme_suggestions_theme_test_function_suggestions_alter()
Implements hook_theme_suggestions_HOOK_alter().
File
-
core/
modules/ system/ tests/ themes/ test_legacy_theme/ test_legacy_theme.theme, line 20
Code
function test_legacy_theme_theme_suggestions_theme_test_function_suggestions_alter(array &$suggestions, array $variables) {
// Theme alter hooks run after module alter hooks, so add this theme
// suggestion to the beginning of the array so that the suggestion added by
// the theme_suggestions_test module can be picked up when that module is
// enabled.
array_unshift($suggestions, 'theme_test_function_suggestions__' . 'theme_override');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.