You are here

public function ChartsTypeInfo::getChartTypes in Charts 8.3

File

src/Settings/ChartsTypeInfo.php, line 69

Class

ChartsTypeInfo

Namespace

Drupal\charts\Settings

Code

public function getChartTypes() {
  $chart_types = $this
    ->chartsChartsTypeInfo();
  $type_options = [];
  foreach ($chart_types as $chart_type => $chart_type_info) {
    $type_options[$chart_type] = $chart_type_info['label'];
  }
  return $type_options;
}