You are here

public function ChartsDefaultSettings::setDefaults in Charts 8.4

Same name and namespace in other branches
  1. 8.3 src/Settings/ChartsDefaultSettings.php \Drupal\charts\Settings\ChartsDefaultSettings::setDefaults()
  2. 5.0.x src/Settings/ChartsDefaultSettings.php \Drupal\charts\Settings\ChartsDefaultSettings::setDefaults()

Sets the defaults settings.

Parameters

array $defaults: The settings.

File

src/Settings/ChartsDefaultSettings.php, line 121

Class

ChartsDefaultSettings
The chart default settings instance.

Namespace

Drupal\charts\Settings

Code

public function setDefaults(array $defaults) {
  $this->defaults = $defaults;
}