You are here

public function Webform::getElementsDecoded in Webform 8.5

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

Get webform elements decoded as an associative array.

Return value

array|bool Elements as an associative array. Returns FALSE if elements YAML is invalid.

Overrides WebformInterface::getElementsDecoded

4 calls to Webform::getElementsDecoded()
Webform::deleteElement in src/Entity/Webform.php
Remove an element.
Webform::isResultsDisabled in src/Entity/Webform.php
Determine if the saving of submissions is disabled.
Webform::postSave in src/Entity/Webform.php
Acts on a saved entity before the insert or update hook is invoked.
Webform::setElementProperties in src/Entity/Webform.php
Set element properties.

File

src/Entity/Webform.php, line 1265

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function getElementsDecoded() {
  $this
    ->initElements();
  return $this->elementsDecoded;
}