public function WebformOptions::setOptions in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/WebformOptions.php \Drupal\webform\Entity\WebformOptions::setOptions()
Set options (YAML) value.
Parameters
array $options: An renderable array of options.
Return value
$this
Overrides WebformOptionsInterface::setOptions
File
- src/
Entity/ WebformOptions.php, line 153
Class
- WebformOptions
- Defines the webform options entity.
Namespace
Drupal\webform\EntityCode
public function setOptions(array $options) {
$this->options = WebformYaml::encode($options);
$this->optionsDecoded = NULL;
return $this;
}