Implements hook_theme_suggestions_HOOK_alter().

File

core/modules/system/tests/themes/test_theme/test_theme.theme, line 75
Theme to help test the Twig engine.

Code

function test_theme_theme_suggestions_node_alter(array &$suggestions, array $variables) {

  // Add an invalid suggestion to be tested.
  $suggestions[] = 'invalid_theme_suggestions';
  \Drupal::messenger()
    ->addStatus(__FUNCTION__ . '() executed.');
}