public function YamlFormManagedFileBase::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
3 calls to YamlFormManagedFileBase::getFormats()
- YamlFormAudioFile::getFormats in src/
Plugin/ YamlFormElement/ YamlFormAudioFile.php  - Get an element's available formats.
 - YamlFormImageFile::getFormats in src/
Plugin/ YamlFormElement/ YamlFormImageFile.php  - Get an element's available formats.
 - YamlFormVideoFile::getFormats in src/
Plugin/ YamlFormElement/ YamlFormVideoFile.php  - Get an element's available formats.
 
3 methods override YamlFormManagedFileBase::getFormats()
- YamlFormAudioFile::getFormats in src/
Plugin/ YamlFormElement/ YamlFormAudioFile.php  - Get an element's available formats.
 - YamlFormImageFile::getFormats in src/
Plugin/ YamlFormElement/ YamlFormImageFile.php  - Get an element's available formats.
 - YamlFormVideoFile::getFormats in src/
Plugin/ YamlFormElement/ YamlFormVideoFile.php  - Get an element's available formats.
 
File
- src/
Plugin/ YamlFormElement/ YamlFormManagedFileBase.php, line 277  
Class
- YamlFormManagedFileBase
 - Provides a base class form 'managed_file' elements.
 
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getFormats() {
  return parent::getFormats() + [
    'file' => $this
      ->t('File'),
    'link' => $this
      ->t('Link'),
    'id' => $this
      ->t('File ID'),
    'url' => $this
      ->t('URL'),
  ];
}