You are here

search-api-spellcheck-suggestions.html.twig in Search API Spellcheck 8.3

Default theme implementation to display a search did you mean.

Available variables:

  • label: Text to display in front of the did you mean.
  • link: The link (\Drupal\Core\Link object) to which the did you mean will redirect the user.

File

templates/search-api-spellcheck-suggestions.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a search did you mean.
  5. *
  6. * Available variables:
  7. * - label: Text to display in front of the did you mean.
  8. * - link: The link (\Drupal\Core\Link object) to which the did you mean will
  9. * redirect the user.
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. <div class="sapi-suggestions">
  15. <span class="suggestions-prefix">{{ label }} </span>
  16. <ul>
  17. {% for suggestion in suggestions %}
  18. <li>{{ suggestion }}</li>
  19. {% endfor %}
  20. </ul>
  21. </div>