You are here

public function Webform::getElementDecoded in Webform 8.5

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

Get a webform's raw (uninitialized) element.

Parameters

string $key: The element's key.

Return value

array|null An associative array containing an raw (uninitialized) element.

Overrides WebformInterface::getElementDecoded

1 call to Webform::getElementDecoded()
Webform::deleteElement in src/Entity/Webform.php
Remove an element.

File

src/Entity/Webform.php, line 1842

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function getElementDecoded($key) {
  $elements = $this
    ->getElementsDecodedAndFlattened();
  return isset($elements[$key]) ? $elements[$key] : NULL;
}