annotate core/themes/classy/templates/content/aggregator-item.html.twig @ 5:12f9dff5fda9
tip
Update to Drupal core 8.7.1
author |
Chris Cannam |
date |
Thu, 09 May 2019 15:34:47 +0100 |
parents |
c75dbcec494b |
children |
|
rev |
line source |
Chris@0
|
1 {#
|
Chris@0
|
2 /**
|
Chris@0
|
3 * @file
|
Chris@0
|
4 * Theme override to present a feed item in an aggregator page.
|
Chris@0
|
5 *
|
Chris@0
|
6 * Available variables:
|
Chris@0
|
7 * - url: URL to the originating feed item.
|
Chris@0
|
8 * - title: Title of the feed item.
|
Chris@0
|
9 * - content: All field items. Use {{ content }} to print them all,
|
Chris@0
|
10 * or print a subset such as {{ content.field_example }}. Use
|
Chris@0
|
11 * {{ content|without('field_example') }} to temporarily suppress the printing
|
Chris@0
|
12 * of a given element.
|
Chris@0
|
13 * - attributes: HTML attributes for the wrapper.
|
Chris@0
|
14 * - title_prefix: Additional output populated by modules, intended to be
|
Chris@0
|
15 * displayed in front of the main title tag that appears in the template.
|
Chris@0
|
16 * - title_suffix: Additional output populated by modules, intended to be
|
Chris@0
|
17 * displayed after the main title tag that appears in the template.
|
Chris@0
|
18 *
|
Chris@0
|
19 * @see template_preprocess_aggregator_item()
|
Chris@0
|
20 */
|
Chris@0
|
21 #}
|
Chris@0
|
22 <article{{ attributes.addClass('aggregator-item') }}>
|
Chris@0
|
23 {{ title_prefix }}
|
Chris@0
|
24 <h3 class="feed-item-title">
|
Chris@0
|
25 <a href="{{ url }}">{{ title }}</a>
|
Chris@0
|
26 </h3>
|
Chris@0
|
27 {{ title_suffix }}
|
Chris@0
|
28 {{ content }}
|
Chris@0
|
29 </article>
|