You are here

public function ChartsSettingsService::getChartsSettings in Charts 8.3

Same name and namespace in other branches
  1. 8.4 src/Services/ChartsSettingsService.php \Drupal\charts\Services\ChartsSettingsService::getChartsSettings()
  2. 5.0.x src/Services/ChartsSettingsService.php \Drupal\charts\Services\ChartsSettingsService::getChartsSettings()

Get Charts Settings.

Return value

array Charts settings.

Overrides ChartsSettingsServiceInterface::getChartsSettings

File

src/Services/ChartsSettingsService.php, line 27

Class

ChartsSettingsService
Charts Settings Service.

Namespace

Drupal\charts\Services

Code

public function getChartsSettings() {
  $config = $this->configFactory
    ->getEditable('charts.settings');
  return $config
    ->get('charts_default_settings');
}