You are here

public function Report::getDefaultParameters in Forena Reports 8

Get default parameters from report.

Return value

array

File

src/Report.php, line 302
Basic report provider. Controls the rendering of the report.

Class

Report

Namespace

Drupal\forena

Code

public function getDefaultParameters() {
  $defaults = [];
  foreach ($this->parameterDefinitions as $key => $def) {
    if ($def['value']) {
      $defaults[$key] = $def['value'];
    }
  }
  return $defaults;
}