public function YamlForm::setElements in YAML Form 8
Sets elements (YAML) value.
Parameters
array $elements: An renderable array of elements.
Return value
$this
Overrides YamlFormInterface::setElements
2 calls to YamlForm::setElements()
- YamlForm::deleteElement in src/
Entity/ YamlForm.php - Remove an element.
- YamlForm::setElementProperties in src/
Entity/ YamlForm.php - Set element properties.
File
- src/
Entity/ YamlForm.php, line 746
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public function setElements(array $elements) {
$this->elements = Yaml::encode($elements);
$this
->resetElements();
return $this;
}