Updated: Comment #25
ConfirmFormBase has a getCancelPath() 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.
Use the new route capabilities of
'#type' => 'link', and introduce a
getCancelRoute() method to replace
Get blockers in
User interface changes
ConfirmFormInterface::getCancelPath() is deprecated and slated for removal pre-8.0
PASSED: [[SimpleTest]]: [MySQL] 59,359 pass(es).
PASSED: [[SimpleTest]]: [MySQL] 59,149 pass(es).
PASSED: [[SimpleTest]]: [MySQL] 58,770 pass(es).