function test_theme_theme_suggestions_node_alter

Same name and namespace in other branches
  1. 10 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_suggestions_node_alter()

Implements hook_theme_suggestions_HOOK_alter().

File

core/modules/system/tests/themes/test_theme/test_theme.theme, line 75

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.');
}

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