You are here

public function ConfigDefaultImageFormatter::settingsSummary in Config default image 8

Returns a short summary for the current formatter settings.

If an empty result is returned, a UI can still be provided to display a settings form in case the formatter has configurable settings.

Return value

string[] A short summary of the formatter settings.

Overrides ImageFormatter::settingsSummary

File

src/Plugin/Field/FieldFormatter/ConfigDefaultImageFormatter.php, line 163

Class

ConfigDefaultImageFormatter
Plugin implementation of the 'image' formatter.

Namespace

Drupal\config_default_image\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  $summary[] = t('Fallback to a default image');
  return $summary;
}