You are here

public function WebformSubmissionViewBuilderInterface::buildElements in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionViewBuilderInterface.php \Drupal\webform\WebformSubmissionViewBuilderInterface::buildElements()

Build element display items from elements and submitted data.

Parameters

array $elements: Webform elements.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

array $options:

  • excluded_elements: An array of elements to be excluded.
  • ignore_access: Flag to ignore private and/or access controls and always display the element.
  • 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 WebformSubmissionViewBuilderInterface::buildElements()
WebformSubmissionViewBuilder::buildElements in src/WebformSubmissionViewBuilder.php
Build element display items from elements and submitted data.

File

src/WebformSubmissionViewBuilderInterface.php, line 31

Class

WebformSubmissionViewBuilderInterface
Defines an interface for webform view builder classes.

Namespace

Drupal\webform

Code

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