public function YamlFormElementBase::formatTableColumn in YAML Form 8
Format an element's table column value.
Parameters
array $element: An element.
array|mixed $value: A value.
array $options: An array of options returned from ::getTableColumns().
Return value
array|string The element's value formatted as an HTML string or a render array.
Overrides YamlFormElementInterface::formatTableColumn
2 methods override YamlFormElementBase::formatTableColumn()
- YamlFormCompositeBase::formatTableColumn in src/
Plugin/ YamlFormElement/ YamlFormCompositeBase.php - Format an element's table column value.
- YamlFormLikert::formatTableColumn in src/
Plugin/ YamlFormElement/ YamlFormLikert.php - Format an element's table column value.
File
- src/
YamlFormElementBase.php, line 710
Class
- YamlFormElementBase
- Provides a base class for a form element.
Namespace
Drupal\yamlformCode
public function formatTableColumn(array $element, $value, array $options = []) {
return $this
->formatHtml($element, $value);
}