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.
1 theme call to search-api-spellcheck-suggestions.html.twig
- SuggestionsSpellCheck::render in src/
Plugin/ views/ area/ SuggestionsSpellCheck.php - Render the area.
File
templates/search-api-spellcheck-suggestions.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @ingroup themeable
- */
- #}
-
- <div class="sapi-suggestions">
- <span class="suggestions-prefix">{{ label }} </span>
- <ul>
- {% for suggestion in suggestions %}
- <li>{{ suggestion }}</li>
- {% endfor %}
- </ul>
- </div>
-