public function Webform::setSetting in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::setSetting()
Sets a webform setting for a given key.
Parameters
string $key: The key of the setting to store.
mixed $value: The data to store.
Return value
$this
Overrides WebformInterface::setSetting
1 call to Webform::setSetting()
- Webform::setSettingOverride in src/
Entity/ Webform.php - Sets a webform setting override for a given key.
File
- src/
Entity/ Webform.php, line 1003
Class
- Webform
- Defines the webform entity.
Namespace
Drupal\webform\EntityCode
public function setSetting($key, $value) {
$settings = $this
->getSettings();
$settings[$key] = $value;
$this
->setSettings($settings);
return $this;
}