You are here

public function FileTypeEnableForm::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/FileTypeEnableForm.php, line 49

Class

FileTypeEnableForm
Builds the form to enable a file type.

Namespace

Drupal\file_entity\Form

Code

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