You are here

public function FileTypeDisableForm::getCancelUrl in File Entity (fieldable files) 8.2

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/FileTypeDisableForm.php, line 49

Class

FileTypeDisableForm
Builds the form to disable a file type.

Namespace

Drupal\file_entity\Form

Code

public function getCancelUrl() {
  return new Url('entity.file_type.collection');
}