Commit e3784599 authored by alexpott's avatar alexpott

Issue #2202151 by longwave, BarisW: Use getCancelRoute for Forum DeleteForm.

parent 19f5b353
......@@ -40,6 +40,9 @@ public function getQuestion() {
* {@inheritdoc}
*/
public function getCancelRoute() {
return array(
'route_name' => 'forum.overview',
);
}
/**
......@@ -55,11 +58,7 @@ public function getConfirmText() {
public function buildForm(array $form, array &$form_state, TermInterface $taxonomy_term = NULL) {
$this->taxonomyTerm = $taxonomy_term;
$form = parent::buildForm($form, $form_state);
// @todo Convert to getCancelRoute() after http://drupal.org/node/1974210.
$form['actions']['cancel']['#href'] = 'admin/structure/forum';
return $form;
return parent::buildForm($form, $form_state);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment