public function YamlFormMarkup::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 YamlFormMarkupBase::buildText
File
- src/
Plugin/ YamlFormElement/ YamlFormMarkup.php, line 33
Class
- YamlFormMarkup
- Provides a 'yamlform_markup' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function buildText(array &$element, $value, array $options = []) {
$element['#markup'] = MailFormatHelper::htmlToText($element['#markup']);
return parent::buildText($element, $value, $options);
}