public function YamlFormImageFile::getFormats in YAML Form 8
Get an element's available formats.
Return value
array An associative array of formats containing name/label pairs.
Overrides YamlFormManagedFileBase::getFormats
File
- src/
Plugin/ YamlFormElement/ YamlFormImageFile.php, line 20
Class
- YamlFormImageFile
- Provides a 'yamlform_image_file' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getFormats() {
$formats = parent::getFormats();
$formats['file'] = $this
->t('Image');
return $formats;
}