You are here

public function YamlFormElementBase::buildText in YAML Form 8

Build an element as text 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 text.

Overrides YamlFormElementInterface::buildText

1 method overrides YamlFormElementBase::buildText()
YamlFormMarkupBase::buildText in src/Plugin/YamlFormElement/YamlFormMarkupBase.php
Build an element as text element.

File

src/YamlFormElementBase.php, line 567

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function buildText(array &$element, $value, array $options = []) {
  return $this
    ->build('text', $element, $value, $options);
}