Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
1 Jul 2020 at 22:04 UTC
Updated:
13 Nov 2020 at 12:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ramya balasubramanian commentedHi @andrewmacpherson,
I have checked this feed-icon.html.twig files, totally this file is at 3 places
1. '/core/modules/system/templates/feed-icon.html.twig'
2. '/core/themes/stable9/templates/media-library/feed-icon.html.twig'
3. 'core/themes/stable/templates/misc/feed-icon.html.twig'
feed_icon' => [
'variables' => ['url' => NULL, 'title' => NULL],
]
I have seen the title was added under 'Available Variables'. Can you please let me know in which place this is not documented?
Comment #3
andrewmacpherson commentedIt isn't documented in the twig files as a TOP-level variable.
The available variables in the twig docblock mention
urlandattributesas the top-level variables.Note that the
titlevariable is different from theattributes.titlevariable.Comment #4
manisha111 commentedComment #5
manisha111 commentedComment #6
bandanasharma commentedAdd the missing top-level title documention for these files:
1. '/core/modules/system/templates/feed-icon.html.twig'
2. '/core/themes/stable9/templates/media-library/feed-icon.html.twig'
3. 'core/themes/stable/templates/misc/feed-icon.html.twig'
Please review the docmention and let me know your thoughts on this.
Comment #7
ranjith_kumar_k_u commentedI have applied the "feed-icon-doc-3156260-6.patch" patch on drupal 9.1 dev version,the patch applied successfully,now the title variable is documented in these 'feed-icon.html.twig' files

1. '/core/modules/system/templates/feed-icon.html.twig'
2. '/core/themes/stable9/templates/media-library/feed-icon.html.twig'
3. 'core/themes/stable/templates/misc/feed-icon.html.twig'
Comment #8
ranjith_kumar_k_u commentedComment #9
lauriiiMaybe something like "Title of the feed for describing the feed on the subscribe link." would be more descriptive?
Comment #11
abhijith s commentedAdded new description. Please check
Comment #12
tanubansal commentedTested #6, #11, Updated changes are visible on 9.1
This can be moved to RTBC
Comment #13
abhijith s commentedComment #14
lauriiiI think the text looks good now. While reviewing this, I noticed that Olivero has feed-icon.html.twig too so this change should be applied there too.
Comment #15
anmolgoyal74 commentedUpdated in Olivero theme as well.
Comment #16
paulocsIt looks good now.
Comment #18
lauriiiCommitted 5deb8d7 and pushed to 9.2.x and 9.1.x. Thanks!