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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Isn't $this->url available?

joshi.rohit100’s picture

Yes , 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.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Cool, thanks.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed daeb8b4 and pushed to 8.x. Thanks!

  • alexpott committed daeb8b4 on 8.x
    Issue #2293643 by joshi.rohit100: Fixed OpmlFeedAdd form still using url...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.