{# /** * @file * Default theme implementation to display a search suggestion. * * Keywords suggestions (which will fill the keywords input field) can be * distinguished from direct results/links (which will take the user to a * different page) by checking whether the "keys" or the "url" key is set. * * Keywords suggestions will usually contain the keywords as a concatenation of * "suggestion_prefix", "user_input" and "suggestion_suffix". * * Available variables: * - keys: The fulltext keywords this suggestion will put into the search field. * - url: The URL (\Drupal\Core\Url object) to which the suggestion will * redirect the user. * - label: A complete label to display for the suggestion. * - note: Text to display in front of the label. * - results_count: The (approximate) number of results the suggested keywords * will yield. * - suggestion_prefix: A suggested prefix for the entered user input. * - suggestion_suffix: A suggested suffix for the entered user input. * - user_input: The input entered by the user so far. * * @ingroup themeable */ #}
{% if note %} {{ note }} {% endif %} {% if label %} {{ label }} {% endif %} {% apply spaceless %} {% if suggestion_prefix %} {{ suggestion_prefix }} {% endif %} {% if user_input %} {{ user_input }} {% endif %} {% if suggestion_suffix %} {{ suggestion_suffix }} {% endif %} {% endapply %} {% if results_count %} {{ results_count }} {% endif %}