public function ChartsTypeInfo::getChartType in Charts 8.3
Retrieve a specific chart type.
Parameters
string $chart_type: The type of chart selected for display.
Return value
mixed If not false, returns an array of values from charts_charts_type_info.
File
- src/
Settings/ ChartsTypeInfo.php, line 88
Class
Namespace
Drupal\charts\SettingsCode
public function getChartType($chart_type) {
$types = $this
->chartsChartsTypeInfo();
return isset($types[$chart_type]) ? $types[$chart_type] : FALSE;
}