You are here

public function ChartsConfigForm::charts_info in Charts 8

1 call to ChartsConfigForm::charts_info()
ChartsConfigForm::charts_settings_form in src/Form/ChartsConfigForm.php

File

src/Form/ChartsConfigForm.php, line 457

Class

ChartsConfigForm

Namespace

Drupal\charts\Form

Code

public function charts_info() {
  $charts_info = array();
  foreach ($this->moduleHandler
    ->getImplementations('charts_info') as $module) {
    $module_charts_info = $this->moduleHandler
      ->invoke($module, 'charts_info');
    foreach ($module_charts_info as $chart_library => $chart_library_info) {
      $module_charts_info[$chart_library]['module'] = $module;
    }
    $charts_info = array_merge($charts_info, $module_charts_info);
  }
  $this->moduleHandler
    ->alter('charts_info', $charts_info);
  return $charts_info;
}