FieldConfigDeleteForm::getCancelUrl

public FieldConfigDeleteForm::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides EntityDeleteFormTrait::getCancelUrl

File

core/modules/field_ui/src/Form/FieldConfigDeleteForm.php, line 85

Class

FieldConfigDeleteForm
Provides a form for removing a field from a bundle.

Namespace

Drupal\field_ui\Form

Code

public function getCancelUrl() {
  return FieldUI::getOverviewRouteInfo($this->entity->getTargetEntityTypeId(), $this->entity->getTargetBundle());
}
doc_Drupal
2016-10-29 09:11:01
Comments
Leave a Comment

Please login to continue.