Problem/Motivation
core/lib/Drupal/Core/Render/theme.api.php contains this doc comment
* For further Twig documentation see
* https://twig.symfony.com/doc/1.x/templates.html
Twig is now on 3.x, which makes this link outdated.
Steps to reproduce
Open core/lib/Drupal/Core/Render/theme.api.php.
It contains the link to twig 1.x docs.
Proposed resolution
The url https://twig.symfony.com/doc/ shows the most up to date twig documentation. This link should be used instead to ensure this isn't an issue in the future.
Remaining tasks
Update the doc comment to:
* For further Twig documentation see
* https://twig.symfony.com/doc/
Search the codebase for other links to general twig 1.x or 2.x documentation. There should be no other ones.
Release notes snippet
Comments
Comment #2
mdranove commentedComment #4
mdranove commentedComment #5
dcam commentedThank you for your suggestion to improve Drupal! I've reviewed the change, but I have a concern about it. The new URL's destination is not equivalent to that of the old URL. The old URL specifically went to the documentation sub-page about templates. Whereas the new URL goes to the top-level documentation page.
Also, when I grepped core for "twig.symfony.com" I found a bunch of other Twig 3.x documentation links. A few years ago most other links were updated to their 3.x equivalents. So there's a precedent to consider. My suggestion is to do the same here.
Comment #6
quietone commentedThe title suggests the links are going to direct to Twig 1.x instead of 3.x. So, tagging for a title update.
Comment #7
mdranove commentedUpdated the title of the issue and directed link to 3.x.
Comment #8
dcam commentedLooks good to me.
Comment #9
ankitv18 commentedUpdated the title, hence removing the tag
Comment #10
dcam commentedNot sure what that was about, but I'm restoring the RTBC status.
Comment #13
quietone commentedDid anyone search for other instances?
I applied the diff and checked that myself and did not find any other instances to change.
Committed to 11.x and cherry-picked to 11.3.x
Thanks!
Comment #15
dcam commentedYeah, as part of #5.