Skip to content
Snippets Groups Projects
Commit b7df78ae authored by Daniel Cothran's avatar Daniel Cothran
Browse files

Issue #3490047 by andileco, nikathone: Provide a way to identify chart...

Issue #3490047 by andileco, nikathone: Provide a way to identify chart attachment added to chart render array
parent e1856fee
No related branches found
No related tags found
3 merge requests!114Update ChartsPluginStyleChart.php,!113fixed the issue,!75Resolve #3391197 "Enable support for"
Pipeline #356772 passed with warnings
...@@ -519,6 +519,7 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory ...@@ -519,6 +519,7 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory
$subchart[$key]['#data'] = $processed_data; $subchart[$key]['#data'] = $processed_data;
} }
$chart[$key] = $subchart[$key]; $chart[$key] = $subchart[$key];
$chart[$key]['#chart_attachment_id'] = $child_display_handler->display['id'];
// If the subchart is a different type than the parent chart, set // If the subchart is a different type than the parent chart, set
// the #chart_type property on the individual chart data elements. // the #chart_type property on the individual chart data elements.
if ($subchart['#chart_type'] !== $chart['#chart_type']) { if ($subchart['#chart_type'] !== $chart['#chart_type']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment