You are here

public function FieldValidationRuleDeleteForm::getCancelUrl in Field Validation 8

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

src/Form/FieldValidationRuleDeleteForm.php, line 45

Class

FieldValidationRuleDeleteForm
Form for deleting a fieldValidationRule.

Namespace

Drupal\field_validation\Form

Code

public function getCancelUrl() {
  return $this->fieldValidationRuleSet
    ->toUrl('edit-form');
}