You are here

public function FileManagementController::deleteFilePage in File Management 8

Provides the file edit page.

Parameters

\Drupal\file\FileInterface $file: The file entity to edit.

Return value

array The file edit form.

1 string reference to 'FileManagementController::deleteFilePage'
file_management.routing.yml in ./file_management.routing.yml
file_management.routing.yml

File

src/Controller/FileManagementController.php, line 81

Class

FileManagementController
Provides the view, add pages and title callbacks for file entities.

Namespace

Drupal\file_management\Controller

Code

public function deleteFilePage(FileInterface $file = NULL) {
  $build = [
    'form' => $this
      ->formBuilder()
      ->getForm('Drupal\\file_management\\Form\\FileManagementDeleteFileConfirmForm', $file),
  ];
  return $build;
}