commit 4365d931435cf803e74e8bcf1a5893fbf93893f9 Author: Joel Pittet Date: Sun Feb 24 15:02:37 2013 -0800 1898448-14-reroll diff --git a/core/modules/search/templates/search-result.html.twig b/core/modules/search/templates/search-result.html.twig index dbaaa72..7164d2c 100644 --- a/core/modules/search/templates/search-result.html.twig +++ b/core/modules/search/templates/search-result.html.twig @@ -16,12 +16,11 @@ * - info_split: Contains same data as info, split into a keyed array. * - module: The machine-readable name of the module (tab) being searched, such * as "node" or "user". - * - title_prefix (array): An array containing additional output populated by - * modules, intended to be displayed in front of the main title tag that + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that * appears in the template. - * - title_suffix (array): An array containing additional output populated by - * modules, intended to be displayed after the main title tag that appears in - * the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. * * Default keys within info_split: * - info_split.type: Node type (or item type string supplied by module). @@ -32,17 +31,15 @@ * being the count. Depends on comment.module. * * Other variables: - * - title_attributes: Array of html attributes for the title. It is - * flattened into a string within the variable title_attributes. - * - content_attributes: Array of html attributes for the content. It is - * flattened into a string within the variable content_attributes. + * - title_attributes: HTML attributes for the title. + * - content_attributes: HTML attributes for the content. * * Since info_split is keyed, a direct print of the item is possible. * This array does not apply to user searches so it is recommended to check * for its existence before printing. The default keys of 'type', 'user' and * 'date' always exist for node searches. Modules may provide other data. * @code - * {% if (info_split.comment is defined) %} + * {% if (info_split.comment) %} * * {{ info_split.comment }} * @@ -64,11 +61,11 @@ */ #}
  • - {{ render_var(title_prefix) }} + {{ title_prefix }}

    {{ title }}

    - {{ render_var(title_suffix) }} + {{ title_suffix }}
    {% if snippet %}

    {{ snippet }}