You are here

search-api-spellcheck-did-you-mean.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-did-you-mean.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-did-you-mean">
  15. <span class="did-you-mean-prefix">{{ label }} </span>
  16. {{ link }}
  17. <span class="did-you-mean-suffix">?</span>
  18. </div>