public function YamlFormElementBase::buildHtml in YAML Form 8
Build an element as HTML element.
Parameters
array $element: An element.
array|mixed $value: A value.
array $options: An array of options.
Return value
array A render array representing an element as HTML.
Overrides YamlFormElementInterface::buildHtml
1 method overrides YamlFormElementBase::buildHtml()
- YamlFormMarkupBase::buildHtml in src/
Plugin/ YamlFormElement/ YamlFormMarkupBase.php - Build an element as HTML element.
File
- src/
YamlFormElementBase.php, line 560
Class
- YamlFormElementBase
- Provides a base class for a form element.
Namespace
Drupal\yamlformCode
public function buildHtml(array &$element, $value, array $options = []) {
return $this
->build('html', $element, $value, $options);
}