You are here

public function YamlFormSubmissionViewBuilderInterface::buildElements in YAML Form 8

Build element display items from elements and submitted data.

Parameters

array $elements: Form elements.

array $data: Submission data.

array $options:

  • excluded_elements: An array of elements to be excluded.
  • email: Format element to be send via email.

string $format: Output format set to html or text.

Return value

array A render array displaying the submitted values.

1 method overrides YamlFormSubmissionViewBuilderInterface::buildElements()
YamlFormSubmissionViewBuilder::buildElements in src/YamlFormSubmissionViewBuilder.php
Build element display items from elements and submitted data.

File

src/YamlFormSubmissionViewBuilderInterface.php, line 29

Class

YamlFormSubmissionViewBuilderInterface
Defines an interface for form view builder classes.

Namespace

Drupal\yamlform

Code

public function buildElements(array $elements, array $data, array $options = [], $format = 'html');