public function YamlFormElementInterface::formatText in YAML Form 8
Format an element's value as plain text.
Parameters
array $element: An element.
array|mixed $value: A value.
array $options: An array of options.
Return value
string The element's value formatted as plain text or a render array.
1 method overrides YamlFormElementInterface::formatText()
- YamlFormElementBase::formatText in src/
YamlFormElementBase.php - Format an element's value as plain text.
File
- src/
YamlFormElementInterface.php, line 355
Class
- YamlFormElementInterface
- Defines the interface for form elements.
Namespace
Drupal\yamlformCode
public function formatText(array &$element, $value, array $options = []);