You are here

protected function Workflow::mergeDefaults in Workflow 8

Merges default settings values into $settings.

2 calls to Workflow::mergeDefaults()
Workflow::getSetting in src/Entity/Workflow.php
Returns the value of a setting, or its default value if absent.
Workflow::getSettings in src/Entity/Workflow.php
Returns the array of settings, including defaults for missing settings.

File

src/Entity/Workflow.php, line 536

Class

Workflow
Workflow configuration entity to persistently store configuration.

Namespace

Drupal\workflow\Entity

Code

protected function mergeDefaults() {
  $this->options += static::defaultSettings();
  $this->defaultSettingsMerged = TRUE;
}