public function YamlFormElementInterface::getFormat in YAML Form 8
Get element's format name by looking for '#format' property, global settings, and finally default settings.
Parameters
array $element: An element.
Return value
string An element's format name.
1 method overrides YamlFormElementInterface::getFormat()
- YamlFormElementBase::getFormat in src/
YamlFormElementBase.php - Get element's format name by looking for '#format' property, global settings, and finally default settings.
File
- src/
YamlFormElementInterface.php, line 395
Class
- YamlFormElementInterface
- Defines the interface for form elements.
Namespace
Drupal\yamlformCode
public function getFormat(array $element);