You are here

public function Webform::setSettingsOverride in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::setSettingsOverride()

Sets the webform settings override.

Using this methods stops a webform from being saved with the overridden settings.

Parameters

array $settings: The structured array containing the webform setting override.

Return value

$this

Overrides WebformInterface::setSettingsOverride

1 call to Webform::setSettingsOverride()
Webform::invokeHandlers in src/Entity/Webform.php
Invoke a handlers method.

File

src/Entity/Webform.php, line 1021

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function setSettingsOverride(array $settings) {
  $this
    ->setSettings($settings);
  $this
    ->setOverride();
  return $this;
}