Piwik\Plugin\Report::configureReportMetadata PHP Method

configureReportMetadata() public method

If the report is enabled the report metadata for this report will be built and added to the list of available reports. Overwrite this method and leave it empty in case you do not want your report to be added to the report metadata. In this case your report won't be visible for instance in the mobile app and scheduled reports generator. We recommend to change this behavior only if you are familiar with the Piwik core. $infos contains the current requested date, period and site.
public configureReportMetadata ( &$availableReports, $infos )
$availableReports
$infos
    public function configureReportMetadata(&$availableReports, $infos)
    {
        if (!$this->isEnabled()) {
            return;
        }
        $report = $this->buildReportMetadata();
        if (!empty($report)) {
            $availableReports[] = $report;
        }
    }