You are here

public function YamlForm::getElementDecoded in YAML Form 8

Get a form's raw (uninitialized) element.

Parameters

string $key: The element's key.

Return value

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

Overrides YamlFormInterface::getElementDecoded

File

src/Entity/YamlForm.php, line 927

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\Entity

Code

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