You are here

public function FrxMyReports::render in Forena Reports 8

Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.

Return value

string text from the renderer.

Overrides RendererBase::render

File

src/FrxPlugin/Renderer/FrxMyReports.php, line 16

Class

FrxMyReports
Report Listing

Namespace

Drupal\forena\FrxPlugin\Renderer

Code

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;
}