TermDeleteForm::getCancelUrl

public TermDeleteForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ContentEntityDeleteForm::getCancelUrl

File

core/modules/taxonomy/src/Form/TermDeleteForm.php, line 17

Class

TermDeleteForm
Provides a deletion confirmation form for taxonomy term.

Namespace

Drupal\taxonomy\Form

Code

public function getCancelUrl() {
  // The cancel URL is the vocabulary collection, terms have no global
  // list page.
  return new Url('entity.taxonomy_vocabulary.collection');
}
doc_Drupal
2016-10-29 09:47:08
Comments
Leave a Comment

Please login to continue.