public function AuthorReferenceFormatter::settingsSummary in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/AuthorReferenceFormatter.php \Drupal\fb_instant_articles\Plugin\Field\FieldFormatter\AuthorReferenceFormatter::settingsSummary()
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 FormatterBase::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ AuthorReferenceFormatter.php, line 52
Class
- AuthorReferenceFormatter
- Plugin implementation of the 'fbia_author_reference' formatter.
Namespace
Drupal\fb_instant_articles\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
$summary[] = $this
->getSetting('link') ? t('Link to the referenced entity') : t('No link');
return $summary;
}