You are here

public function FileManagementViewController::getFileUsage in File Management 8

Returns the file usage page.

Parameters

int $fid: The file id of the file to load.

Return value

array An array as expected by \Drupal\Core\Render\RendererInterface::render().

1 string reference to 'FileManagementViewController::getFileUsage'
file_management_view.routing.yml in modules/file_management_view/file_management_view.routing.yml
modules/file_management_view/file_management_view.routing.yml

File

modules/file_management_view/src/Controller/FileManagementViewController.php, line 44

Class

FileManagementViewController
Provides route responses for the File Management Views module.

Namespace

Drupal\file_management_view\Controller

Code

public function getFileUsage($fid) {
  $build = $this
    ->getView('file_management', 'usage', [
    $fid,
  ]);
  return $build;
}