You are here

public function Webform::setOverride in Webform 8.5

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

Sets the webform settings and properties override state.

Setting the override state to TRUE allows modules to alter a webform's settings and properties while blocking a webform from being saved with the overridden settings.

Parameters

bool $override: The override state of the Webform.

Return value

$this

Overrides WebformInterface::setOverride

See also

\Drupal\webform\WebformInterface::setSettingsOverride

\Drupal\webform\Entity\Webform::preSave

5 calls to Webform::setOverride()
Webform::applyVariants in src/Entity/Webform.php
Apply webform variants based on a webform submission or parameter.
Webform::resetSettings in src/Entity/Webform.php
Reset overridden settings to original settings.
Webform::setPropertyOverride in src/Entity/Webform.php
Sets the value of an overridden property.
Webform::setSettingOverride in src/Entity/Webform.php
Sets a webform setting override for a given key.
Webform::setSettingsOverride in src/Entity/Webform.php
Sets the webform settings override.

File

src/Entity/Webform.php, line 575

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function setOverride($override = TRUE) {
  $this->override = $override;
  return $this;
}