ModerationStateDeleteForm::getCancelUrl

public ModerationStateDeleteForm::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

core/modules/content_moderation/src/Form/ModerationStateDeleteForm.php, line 24

Class

ModerationStateDeleteForm
Builds the form to delete Moderation state entities.

Namespace

Drupal\content_moderation\Form

Code

public function getCancelUrl() {
  return new Url('entity.moderation_state.collection');
}
doc_Drupal
2016-10-29 09:28:43
Comments
Leave a Comment

Please login to continue.