aggregator-item.html.twig 1014 Bytes
Newer Older
1 2 3 4 5 6
{#
/**
 * @file
 * Default theme implementation to present a feed item in an aggregator page.
 *
 * Available variables:
7 8 9 10 11 12
 * - url: URL to the originating feed item.
 * - title: Title of the feed item.
 * - content: All field items. Use {{ content }} to print them all,
 *   or print a subset such as {{ content.field_example }}. Use
 *   {{ content|without('field_example') }} to temporarily suppress the printing
 *   of a given element.
13 14 15 16 17
 * - attributes: HTML attributes for the wrapper.
 * - 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: Additional output populated by modules, intended to be
 *   displayed after the main title tag that appears in the template.
18 19 20 21 22 23
 *
 * @see template_preprocess_aggregator_item()
 *
 * @ingroup themeable
 */
#}
24
<article{{ attributes }}>
25
  {{ title_prefix }}
26
  <h3>
27
    <a href="{{ url }}">{{ title }}</a>
28
  </h3>
29 30
  {{ title_suffix }}
  {{ content }}
31
</article>