namespace Drupal\file\Plugin\Field\FieldFormatter

Same name in other branches
  1. 10 Drupal\file\Plugin\Field\FieldFormatter
  2. 11.x Drupal\file\Plugin\Field\FieldFormatter
  3. 8.9.x Drupal\file\Plugin\Field\FieldFormatter
Object name File name Summary
BaseFieldFileFormatterBase core/modules/file/src/Plugin/Field/FieldFormatter/BaseFieldFileFormatterBase.php Base class for file formatters, which allow to link to the file download URL.
DefaultFileFormatter core/modules/file/src/Plugin/Field/FieldFormatter/DefaultFileFormatter.php Formatter for a text field on a file entity that links the field to the file.
DescriptionAwareFileFormatterBase core/modules/file/src/Plugin/Field/FieldFormatter/DescriptionAwareFileFormatterBase.php Base class for file formatters that have to deal with file descriptions.
FileAudioFormatter core/modules/file/src/Plugin/Field/FieldFormatter/FileAudioFormatter.php Plugin implementation of the 'file_audio' formatter.
FileExtensionFormatter core/modules/file/src/Plugin/Field/FieldFormatter/FileExtensionFormatter.php Formatter to render a filename as file extension.
FileFormatterBase core/modules/file/src/Plugin/Field/FieldFormatter/FileFormatterBase.php Base class for file formatters.
FileMediaFormatterBase core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Base class for media file formatter.
FileMediaFormatterInterface core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterInterface.php Defines getter methods for FileMediaFormatterBase.
FilemimeFormatter core/modules/file/src/Plugin/Field/FieldFormatter/FilemimeFormatter.php Formatter to render the file MIME type, with an optional icon.
FileSize core/modules/file/src/Plugin/Field/FieldFormatter/FileSize.php Formatter that shows the file size in a human readable way.
FileUriFormatter core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php Formatter to render the file URI to its download path.
FileVideoFormatter core/modules/file/src/Plugin/Field/FieldFormatter/FileVideoFormatter.php Plugin implementation of the 'file_video' formatter.
GenericFileFormatter core/modules/file/src/Plugin/Field/FieldFormatter/GenericFileFormatter.php Plugin implementation of the 'file_default' formatter.
RSSEnclosureFormatter core/modules/file/src/Plugin/Field/FieldFormatter/RSSEnclosureFormatter.php Plugin implementation of the 'file_rss_enclosure' formatter.
TableFormatter core/modules/file/src/Plugin/Field/FieldFormatter/TableFormatter.php Plugin implementation of the 'file_table' formatter.
UrlPlainFormatter core/modules/file/src/Plugin/Field/FieldFormatter/UrlPlainFormatter.php Plugin implementation of the 'file_url_plain' formatter.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.