public function YamlFormLikert::getFormats in YAML Form 8
Get an element's available formats.
Return value
array An associative array of formats containing name/label pairs.
Overrides YamlFormElementBase::getFormats
File
- src/
Plugin/ YamlFormElement/ YamlFormLikert.php, line 257
Class
- YamlFormLikert
- Provides a 'likert' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getFormats() {
return parent::getFormats() + [
'list' => $this
->t('List'),
'table' => $this
->t('Table'),
];
}