only in patch2: unchanged: --- a/core/modules/aggregator/aggregator.theme.inc +++ b/core/modules/aggregator/aggregator.theme.inc @@ -46,5 +46,10 @@ function template_preprocess_aggregator_feed(&$variables) { $variables['content'][$key] = $variables['elements'][$key]; } $variables['full'] = $variables['elements']['#view_mode'] == 'full'; - $variables['title'] = $feed->label(); + // For the 'title' field, if there are configured display settings then + // handle as a normal field. If not, then pull the information out into a + // separate variable. + if (!$feed->title->getFieldDefinition()->isDisplayConfigurable('view')) { + $variables['title'] = $feed->label(); + } } only in patch2: unchanged: --- a/core/modules/aggregator/templates/aggregator-feed.html.twig +++ b/core/modules/aggregator/templates/aggregator-feed.html.twig @@ -7,7 +7,7 @@ * For example, "example.com/aggregator/sources/1". * * Available variables: - * - title: Title of the feed item. + * - title: (optional) 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 @@ -25,7 +25,7 @@ */ #} {{ title_prefix }} -{% if not full %} +{% if title and not full %} {{ title }} {% endif %} {{ title_suffix }} only in patch2: unchanged: --- a/core/themes/classy/templates/dataset/aggregator-feed.html.twig +++ b/core/themes/classy/templates/dataset/aggregator-feed.html.twig @@ -7,7 +7,7 @@ * For example, "example.com/aggregator/sources/1". * * Available variables: - * - title: Title of the feed item. + * - title: (optional) 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 @@ -26,7 +26,7 @@ {{ title_prefix }} - {% if not full %} + {% if title and not full %} {{ title }} {% endif %} {{ title_suffix }} only in patch2: unchanged: --- a/core/themes/stable/templates/dataset/aggregator-feed.html.twig +++ b/core/themes/stable/templates/dataset/aggregator-feed.html.twig @@ -7,7 +7,7 @@ * For example, "example.com/aggregator/sources/1". * * Available variables: - * - title: Title of the feed item. + * - title: (optional) 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 @@ -23,7 +23,7 @@ */ #} {{ title_prefix }} -{% if not full %} +{% if title and not full %} {{ title }} {% endif %} {{ title_suffix }}