Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
Here's a patch that converts robotstxt to Drupal 8.
I'm also offering myself to co-maintain the module in D8 if that's OK.
Comment | File | Size | Author |
---|---|---|---|
#14 | D8-Upgrade-of-robotstxt-module.patch | 20.53 KB | hass |
Comments
Comment #1
Alan Evans CreditAttribution: Alan Evans commentedThe previous patch no longer works on current D8. Adding a revised patch shortly.
Comment #2
Alan Evans CreditAttribution: Alan Evans commentedWork on this Drupal 8 upgrade patch was done by Marcelo Vani, Arled, and myself as part of the Acquia Large Scale Drupal hackathon event London 26th-27th February 2014.
The changes made here include:
Comment #3
Alan Evans CreditAttribution: Alan Evans commentedUpdated - coding standards and test fix.
Comment #4
Alan Evans CreditAttribution: Alan Evans commentedPosting interdiff for comparison between the original D7-D8 upgrade patch on this issue and patch on comment #3.
Comment #5
Alan Evans CreditAttribution: Alan Evans commentedComment #6
marcelovaniComment #7
hass CreditAttribution: hass commentedComment #8
hass CreditAttribution: hass commentedDon't set weight on menu item, please.
Never make line breaks inside t().
Comment #9
marcelovaniI have committed the changes here http://drupalcode.org/sandbox/alanevans/2205569.git/shortlog/refs/heads/...
and the patch is attached.
Comment #10
marcelovaniErr, uploaded the wrong file...
Comment #11
hass CreditAttribution: hass commentednever use l() inside t() and never use the word "here".
Roll back to single line. Do not change anything.
Bug
Bug
If you changed any logic compared to D7 or introduced any new features roll them back, too. I have not fully reviewed the code... so just as a warning.
Comment #12
marcelovaniComment #13
hass CreditAttribution: hass commentedCreated a branch for D8
Comment #14
hass CreditAttribution: hass commentedNew patch attached.
Comment #15
hass CreditAttribution: hass commentedhttp://drupalcode.org/project/robotstxt.git/commit/abf62ed