8.3.x theme_suggestions_test.module theme_suggestions_test_theme_suggestions_alter(array &$suggestions, array $variables, $hook)
8.0.x theme_suggestions_test.module theme_suggestions_test_theme_suggestions_alter(array &$suggestions, array $variables, $hook)
8.1.x theme_suggestions_test.module theme_suggestions_test_theme_suggestions_alter(array &$suggestions, array $variables, $hook)
8.2.x theme_suggestions_test.module theme_suggestions_test_theme_suggestions_alter(array &$suggestions, array $variables, $hook)
8.4.x theme_suggestions_test.module theme_suggestions_test_theme_suggestions_alter(array &$suggestions, array $variables, $hook)

Implements hook_theme_suggestions_alter().

File

core/modules/system/tests/modules/theme_suggestions_test/theme_suggestions_test.module, line 23
Support module for testing theme suggestions.

Code

function theme_suggestions_test_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
  drupal_set_message(__FUNCTION__ . '() executed.');
  if ($hook == 'theme_test_general_suggestions') {
    $suggestions[] = $hook . '__module_override';
  }
}