You are here

public function YamlFormElementInterface::formatHtml in YAML Form 8

Format an element's value as HTML.

Parameters

array $element: An element.

array|mixed $value: A value.

array $options: An array of options.

Return value

array|string The element's value formatted as an HTML string or a render array.

1 method overrides YamlFormElementInterface::formatHtml()
YamlFormElementBase::formatHtml in src/YamlFormElementBase.php
Format an element's value as HTML.

File

src/YamlFormElementInterface.php, line 340

Class

YamlFormElementInterface
Defines the interface for form elements.

Namespace

Drupal\yamlform

Code

public function formatHtml(array &$element, $value, array $options = []);