protected function ImageEmbedDataFormatter::getDescription in Formatter Suite 8
Returns a brief description of the formatter.
Return value
string Returns a brief translated description of the formatter.
1 call to ImageEmbedDataFormatter::getDescription()
- ImageEmbedDataFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ ImageEmbedDataFormatter.php - Returns a form to configure settings for the formatter.
File
- src/
Plugin/ Field/ FieldFormatter/ ImageEmbedDataFormatter.php, line 140
Class
- ImageEmbedDataFormatter
- Embeds an image as a data URL instead of a file URL.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected function getDescription() {
return $this
->t("Embed image pixels directly within the page by using a data URL instead of a file URL. This reduces the browser's time spent requesting images, but increases the page size and its download time. It is primarily a good trade-off when images are small, such as for thumbnails.");
}