You are here

public function WebformInterface::setOverride in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformInterface.php \Drupal\webform\WebformInterface::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

See also

\Drupal\webform\WebformInterface::setSettingsOverride

\Drupal\webform\Entity\Webform::preSave

1 method overrides WebformInterface::setOverride()
Webform::setOverride in src/Entity/Webform.php
Sets the webform settings and properties override state.

File

src/WebformInterface.php, line 325

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function setOverride($override = TRUE);