public function Workflow::getSetting in Workflow 8
Returns the value of a setting, or its default value if absent.
Parameters
string $key: The setting name.
Return value
mixed The setting value.
Overrides WorkflowInterface::getSetting
File
- src/
Entity/ Workflow.php, line 525
Class
- Workflow
- Workflow configuration entity to persistently store configuration.
Namespace
Drupal\workflow\EntityCode
public function getSetting($key) {
// Merge defaults if we have no value for the key.
if (!$this->defaultSettingsMerged && !array_key_exists($key, $this->options)) {
$this
->mergeDefaults();
}
return isset($this->options[$key]) ? $this->options[$key] : NULL;
}