public static function BaseSettings::getDefaultSettings in Charts 5.0.x
Same name and namespace in other branches
- 8.4 src/Element/BaseSettings.php \Drupal\charts\Element\BaseSettings::getDefaultSettings()
The default setting.
Return value
array Chart default settings.
Deprecated
in charts:4.0.0-alpha1 and is removed from charts:4.0.0-alpha2. Use $config = \Drupal::config('charts.settings')['charts_default_settings']; instead.
See also
https://www.drupal.org/project/charts/issues/3167252
File
- src/
Element/ BaseSettings.php, line 596
Class
- BaseSettings
- Provides a form element for setting a chart.
Namespace
Drupal\charts\ElementCode
public static function getDefaultSettings() {
$settings = new ChartsDefaultSettings();
return $settings
->getDefaults();
}