You are here

public function Webform::getElementsInitializedFlattenedAndHasValue in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 1297

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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