You are here

public function Webform::getElementsDecodedAndFlattened in Webform 8.5

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

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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