protected function FileManagementViewController::getView in File Management 8
Builds a renderable array for the given view and display id.
Parameters
string $viewName: The view name.
string $displayId: The display id.
array $arguments: The arguments for this particular view and display id.
Return value
array The renderable array.
2 calls to FileManagementViewController::getView()
- FileManagementViewController::getFileUsage in modules/
file_management_view/ src/ Controller/ FileManagementViewController.php - Returns the file usage page.
- FileManagementViewController::getOverview in modules/
file_management_view/ src/ Controller/ FileManagementViewController.php - Returns the file overview page.
File
- modules/
file_management_view/ src/ Controller/ FileManagementViewController.php, line 86
Class
- FileManagementViewController
- Provides route responses for the File Management Views module.
Namespace
Drupal\file_management_view\ControllerCode
protected function getView($viewName, $displayId, $arguments = []) {
$view = Views::getView($viewName);
$view
->setDisplay($displayId);
$view
->setArguments($arguments);
$view
->preExecute();
$view
->execute($displayId);
return $view
->buildRenderable($displayId, $arguments, FALSE);
}