Loading modules/charts_highcharts/src/Plugin/chart/Library/Highcharts.php +5 −9 Changes for modules/charts_highcharts/src/Plugin/chart/Library/Highcharts.php: 5 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -479,7 +479,7 @@ class Highcharts extends ChartBase implements ContainerFactoryPluginInterface { * @return array * Return the chart definition. */ private function populateOptions(array $element, array $chart_definition) { protected function populateOptions(array $element, array $chart_definition) { $chart_type = $this->getType($element['#chart_type']); $chart_definition['chart']['type'] = $chart_type; $chart_definition['chart']['backgroundColor'] = $element['#background']; Loading Loading @@ -600,7 +600,7 @@ class Highcharts extends ChartBase implements ContainerFactoryPluginInterface { * @return array * Return the chart definition. */ private function populateData(array &$element, array $chart_definition) { protected function populateData(array &$element, array $chart_definition) { $categories = []; $chart_type = $this->getType($element['#chart_type']); foreach (Element::children($element) as $key) { Loading Loading @@ -776,7 +776,7 @@ class Highcharts extends ChartBase implements ContainerFactoryPluginInterface { * @return array * Return the chart definition. */ private function populateAxes(array $element, array $chart_definition) { protected function populateAxes(array $element, array $chart_definition) { foreach (Element::children($element) as $key) { if ($element[$key]['#type'] === 'chart_xaxis' || $element[$key]['#type'] === 'chart_yaxis') { // Make sure defaults are loaded. Loading Loading @@ -837,12 +837,8 @@ class Highcharts extends ChartBase implements ContainerFactoryPluginInterface { * @return string * Return the chart type. */ private function getType($type) { if ($type === 'donut') { $type = 'pie'; } return $type; protected function getType($type) { return $type === 'donut' ? 'pie' : $type; } private function datesDataForConfigForm() { Loading Loading
modules/charts_highcharts/src/Plugin/chart/Library/Highcharts.php +5 −9 Changes for modules/charts_highcharts/src/Plugin/chart/Library/Highcharts.php: 5 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -479,7 +479,7 @@ class Highcharts extends ChartBase implements ContainerFactoryPluginInterface { * @return array * Return the chart definition. */ private function populateOptions(array $element, array $chart_definition) { protected function populateOptions(array $element, array $chart_definition) { $chart_type = $this->getType($element['#chart_type']); $chart_definition['chart']['type'] = $chart_type; $chart_definition['chart']['backgroundColor'] = $element['#background']; Loading Loading @@ -600,7 +600,7 @@ class Highcharts extends ChartBase implements ContainerFactoryPluginInterface { * @return array * Return the chart definition. */ private function populateData(array &$element, array $chart_definition) { protected function populateData(array &$element, array $chart_definition) { $categories = []; $chart_type = $this->getType($element['#chart_type']); foreach (Element::children($element) as $key) { Loading Loading @@ -776,7 +776,7 @@ class Highcharts extends ChartBase implements ContainerFactoryPluginInterface { * @return array * Return the chart definition. */ private function populateAxes(array $element, array $chart_definition) { protected function populateAxes(array $element, array $chart_definition) { foreach (Element::children($element) as $key) { if ($element[$key]['#type'] === 'chart_xaxis' || $element[$key]['#type'] === 'chart_yaxis') { // Make sure defaults are loaded. Loading Loading @@ -837,12 +837,8 @@ class Highcharts extends ChartBase implements ContainerFactoryPluginInterface { * @return string * Return the chart type. */ private function getType($type) { if ($type === 'donut') { $type = 'pie'; } return $type; protected function getType($type) { return $type === 'donut' ? 'pie' : $type; } private function datesDataForConfigForm() { Loading