public function YamlFormElementInterface::getLabel in YAML Form 8
Get an element's label (#title or #yamlform_key).
Parameters
array $element: An element.
Return value
string An element's label (#title or #yamlform_key).
1 method overrides YamlFormElementInterface::getLabel()
- YamlFormElementBase::getLabel in src/
YamlFormElementBase.php - Get an element's label (#title or #yamlform_key).
File
- src/
YamlFormElementInterface.php, line 273
Class
- YamlFormElementInterface
- Defines the interface for form elements.
Namespace
Drupal\yamlformCode
public function getLabel(array $element);