Issue #2251861 by olli, jibran: Add the feed icon back to taxonomy/term/% pages

8.0.x
Alex Pott 2015-05-19 15:05:17 +01:00
parent 53fe2049d6
commit 35598263fa
2 changed files with 31 additions and 1 deletions

View File

@ -1,9 +1,12 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
module:
- node
- taxonomy
- user
id: taxonomy_term
label: 'Taxonomy term'
module: taxonomy
@ -236,6 +239,15 @@ display:
empty: { }
relationships: { }
fields: { }
display_extenders: { }
link_url: ''
link_display: page_1
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false
feed_1:
id: feed_1
display_title: Feed
@ -252,7 +264,7 @@ display:
offset: 0
path: taxonomy/term/%/feed
displays:
page: page
page_1: page_1
default: '0'
style:
type: rss
@ -265,6 +277,13 @@ display:
options:
relationship: none
view_mode: default
display_extenders: { }
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false
page_1:
id: page_1
display_title: Page
@ -275,3 +294,10 @@ display:
type: views_query
options: { }
path: taxonomy/term/%
display_extenders: { }
cache_metadata:
contexts:
- 'languages:language_interface'
- url
- 'user.node_grants:view'
cacheable: false

View File

@ -104,6 +104,10 @@ class RssTest extends TaxonomyTestBase {
);
$this->assertRaw($test_element, 'Term is displayed when viewing the rss feed.');
// Test that the feed icon exists for the term.
$this->drupalGet("taxonomy/term/{$term1->id()}");
$this->assertLinkByHref("taxonomy/term/{$term1->id()}/feed");
// Test that the feed page exists for the term.
$this->drupalGet("taxonomy/term/{$term1->id()}/feed");
$this->assertRaw('<rss version="2.0"', "Feed page is RSS.");