public function WebformAnalysisChart::buildAttachedSettings in Webform Analysis 8
Build Attached Settings.
Parameters
array $charts: Charts.
Return value
array Attached Settings.
Overrides WebformAnalysisChartInterface::buildAttachedSettings
1 call to WebformAnalysisChart::buildAttachedSettings()
- WebformAnalysisChart::build in src/
WebformAnalysisChart.php - Build.
File
- src/
WebformAnalysisChart.php, line 155
Class
- WebformAnalysisChart
- Webform Analysis Chart.
Namespace
Drupal\webform_analysisCode
public function buildAttachedSettings(array $charts = []) {
return [
'drupalSettings' => [
'webformcharts' => [
'packages' => [
'corechart',
],
'charts' => $charts,
],
],
];
}