You are here

public function Webform::getElementsDecodedAndFlattened in Webform 6.x

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

Get webform raw elements decoded and flattened into an associative array.

Parameters

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

Return value

array Webform raw elements decoded and flattened into an associative array keyed by element key. Returns FALSE if elements YAML is invalid.

Overrides WebformInterface::getElementsDecodedAndFlattened

1 call to Webform::getElementsDecodedAndFlattened()
Webform::getElementDecoded in src/Entity/Webform.php
Get a webform's raw (uninitialized) element.

File

src/Entity/Webform.php, line 1290

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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