You are here

public function WebformOptions::set in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Entity/WebformOptions.php \Drupal\webform\Entity\WebformOptions::set()

Sets the value of a property.

Parameters

string $property_name: The name of the property that should be set.

mixed $value: The value the property should be set to.

Return value

$this

Overrides ConfigEntityBase::set

File

src/Entity/WebformOptions.php, line 122

Class

WebformOptions
Defines the webform options entity.

Namespace

Drupal\webform\Entity

Code

public function set($property_name, $value) {

  // Make sure to reset decoded options when options are updated.
  if ($property_name === 'options') {
    $this->optionsDecoded = NULL;
  }
  return parent::set($property_name, $value);
}