protected function AcquiaLiftReportBase::loadContextFilterData in Acquia Lift Connector 7
Loads the context filter raw values into the report data.
Parameters
$report_data: The current reporting array by reference.
Return value
array The updated reporting data for chaining purposes. Note that the reporting data is updated by reference as well.
1 call to AcquiaLiftReportBase::loadContextFilterData()
- AcquiaLiftReport::loadReportData in plugins/
agent_types/ AcquiaLiftAgent.inc - Loads all of the data necessary to generate the reports for the agent.
File
- plugins/
agent_types/ AcquiaLiftAgent.inc, line 1380 - Provides an agent type for Acquia Lift
Class
- AcquiaLiftReportBase
- Base class providing report data loading functionality common to all Acquia Lift Reports.
Code
protected function loadContextFilterData(&$report_data) {
// Check and see if it is already loaded.
if (isset($report_data['raw']['potential_context'])) {
return $report_data;
}
// Load it from the report source.
try {
$report_data['raw']['potential_context'] = $this->reportDataSrc
->getContextFilters($report_data['machine_name']);
} catch (Exception $e) {
$report_data['raw']['potential_context']['error'] = $e
->getMessage();
}
return $report_data;
}