You are here

public function WebformAnalysis::getElements in Webform Analysis 8

Get Elements.

Return value

array Element.

Overrides WebformAnalysisInterface::getElements

File

src/WebformAnalysis.php, line 75

Class

WebformAnalysis
WebformAnalysis.

Namespace

Drupal\webform_analysis

Code

public function getElements() {
  if (!$this->elements) {
    $this->elements = $this->webform
      ->getElementsInitializedFlattenedAndHasValue();
  }
  return $this->elements;
}