You are here

public function WebformOptions::setOptions in Webform 8.5

Same name and namespace in other branches
  1. 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\Entity

Code

public function setOptions(array $options) {
  $this->options = WebformYaml::encode($options);
  $this->optionsDecoded = NULL;
  return $this;
}