You are here

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

ChartsTypeInfo

Namespace

Drupal\charts\Settings

Code

public function getChartType($chart_type) {
  $types = $this
    ->chartsChartsTypeInfo();
  return isset($types[$chart_type]) ? $types[$chart_type] : FALSE;
}