You are here

public function YamlFormElementBase::getKey in YAML Form 8

Get an element's key/name.

Parameters

array $element: An element.

Return value

string An element's key/name.

Overrides YamlFormElementInterface::getKey

1 call to YamlFormElementBase::getKey()
YamlFormElementBase::prefixExportHeader in src/YamlFormElementBase.php
Prefix an element's export header.

File

src/YamlFormElementBase.php, line 553

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function getKey(array $element) {
  return $element['#yamlform_key'];
}