FrxMyReports.php in Forena Reports 8
File
src/FrxPlugin/Renderer/FrxMyReports.php
View source
<?php
namespace Drupal\forena\FrxPlugin\Renderer;
use Drupal\forena\AppService;
use Drupal\forena\FrxAPI;
class FrxMyReports extends RendererBase {
public function render() {
$report_list = '';
$variables = $this
->mergedAttributes();
$category = isset($variables['category']) ? $variables['category'] : '';
if (AppService::instance()
->access('list reports')) {
$report_list = forena_user_reports($category);
}
return $report_list;
}
}