public MenuLinkContentDeleteForm::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/menu_link_content/src/Form/MenuLinkContentDeleteForm.php, line 16
Class
- MenuLinkContentDeleteForm
- Provides a delete form for content menu links.
Namespace
Drupal\menu_link_content\Form
Code
public function getCancelUrl() { if ($this->moduleHandler->moduleExists('menu_ui')) { return new Url('entity.menu.edit_form', array('menu' => $this->entity->getMenuName())); } return $this->entity->urlInfo(); }
Please login to continue.