You are here

public function WebformInterface::setElements in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformInterface.php \Drupal\webform\WebformInterface::setElements()

Sets elements (YAML) value.

Parameters

array $elements: An renderable array of elements.

Return value

$this

1 method overrides WebformInterface::setElements()
Webform::setElements in src/Entity/Webform.php
Sets elements (YAML) value.

File

src/WebformInterface.php, line 836

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function setElements(array $elements);