Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292486

ConfirmFormBase::getCancelPath() should allow for a route

$
0
0

ConfirmFormBase has a getCancelUrl() method, which points to what is usually some kind of parent for the form. This requires a URL string pointing to the router path - i.e. admin/config/foobar

However ConfirmFormBase itself is designed to be used as a route controller - and those, by design are path independent (as will their 'parent' be when those are converted. So really I'd expect this method to provide arguments to pass to the generator as opposed to an actual path - then if the parent gets moved somewhere, that'll work too.


Viewing all articles
Browse latest Browse all 292486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>