You are here

public function Webform::getElementsInitializedFlattenedAndHasValue in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Entity/Webform.php \Drupal\webform\Entity\Webform::getElementsInitializedFlattenedAndHasValue()

Get webform flattened list of elements.

Parameters

string $operation: (optional) The operation that is to be performed on the element.

Return value

array Webform elements flattened into an associative array keyed by element key.

Overrides WebformInterface::getElementsInitializedFlattenedAndHasValue

File

src/Entity/Webform.php, line 1298

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function getElementsInitializedFlattenedAndHasValue($operation = NULL) {
  $this
    ->initElements();
  return $this
    ->checkElementsFlattenedAccess($operation, $this->elementsInitializedFlattenedAndHasValue);
}