app/Http/Controllers/ReportEngineController.php
public function reportList(Tree $tree, UserInterface $user): ResponseInterface
    {
        $title = I18N::translate('Choose a report to run');

        return $this->viewResponse('report-select-page', [
            'reports' => $this->module_service->findByComponent(ModuleReportInterface::class, $tree, $user),
            'title'   => $title,
        ]);
    }
public function reportList(Tree $tree, UserInterface $user): ResponseInterface
    {
        $title = I18N::translate('Choose a report to run');

        return $this->viewResponse('report-select-page', [
            'reports' => $this->module_service->findByComponent(ModuleReportInterface::class, $tree, $user),
            'title'   => $title,
        ]);
    }
public function reportList ( Tree $ tree , UserInterface $ user ) : ResponseInterface { $ title = I18N :: translate ( 'Choose a report to run' ) ; return $ this -> viewResponse ( 'report-select-page' , [ 'reports' => $ this -> module_service -> findByComponent ( ModuleReportInterface :: class , $ tree , $ user ) , 'title' => $ title , ] ) ; }
A list of available reports.

@param Tree          $tree
@param UserInterface $user

@return ResponseInterface
A list of available reports .