public function WebformOptions::set in Webform 8.5
Same name and namespace in other branches
- 6.x 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\EntityCode
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);
}