You are here

public function Webform::resetSettings in Webform 8.5

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

Reset overridden settings to original settings.

Overrides WebformInterface::resetSettings

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

File

src/Entity/Webform.php, line 1013

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function resetSettings() {
  $this->settings = $this->settingsOriginal;
  $this
    ->setOverride(FALSE);
}