You are here

public function Webform::getElementsInitializedAndFlattened in Webform 8.5

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

Get webform elements initialized and flattened into an associative array.

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. Returns FALSE if elements YAML is invalid.

Overrides WebformInterface::getElementsInitializedAndFlattened

5 calls to Webform::getElementsInitializedAndFlattened()
Webform::getElement in src/Entity/Webform.php
Get a webform's initialized element.
Webform::getElementInitialized in src/Entity/Webform.php
Webform::getElementsSelectorOptions in src/Entity/Webform.php
Get webform element's selectors as options.
Webform::getElementsSelectorSourceValues in src/Entity/Webform.php
Get webform element options as autocomplete source values.
Webform::invokeElements in src/Entity/Webform.php
Invoke elements method.

File

src/Entity/Webform.php, line 1281

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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