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.
OpmlFeedAdd form in aggregator module is still using the D7 version url() method.
It should use \Drupal::url() as per D8 standard.
Attached the patch for the same.
Comment | File | Size | Author |
---|---|---|---|
#2 | interdiff-opmlfeedform-use-drupalurl-not-url.txt | 816 bytes | joshi.rohit100 |
#2 | opmlfeedform-use-drupalurl-not-url-2.patch | 908 bytes | joshi.rohit100 |
opmlfeedform-use-drupalurl-not-url.patch | 910 bytes | joshi.rohit100 | |
Comments
Comment #1
dawehnerIsn't $this->url available?
Comment #2
joshi.rohit100Yes , you are right. we can use the $this->url().
There is also another way :- $this->urlGenerator()->generate().
But I think, $this->url() is better and simple.
Comment #3
dawehnerCool, thanks.
Comment #4
alexpottCommitted daeb8b4 and pushed to 8.x. Thanks!