public function WebformElementInterface::getItemFormat in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::getItemFormat()
Get element's single value 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 WebformElementInterface::getItemFormat()
- WebformElementBase::getItemFormat in src/
Plugin/ WebformElementBase.php - Get element's single value format name by looking for '#format' property, global settings, and finally default settings.
File
- src/
Plugin/ WebformElementInterface.php, line 578
Class
- WebformElementInterface
- Defines the interface for webform elements.
Namespace
Drupal\webform\PluginCode
public function getItemFormat(array $element);