public function FixedTextFileUrl::settingsSummary in Fixed text link formatter 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 FormatterBase::settingsSummary
File
- src/Plugin/ Field/ FieldFormatter/ FixedTextFileUrl.php, line 89 
Class
- FixedTextFileUrl
- Plugin implementation of the 'file_url_plain' formatter.
Namespace
Drupal\fixed_text_link_formatter\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
  $summary[] = $this
    ->t('Link text: @text', [
    '@text' => $this
      ->getLinkText(),
  ]);
  if (!empty($settings['link_class'])) {
    $summary[] = $this
      ->t('Link class: @text', [
      '@text' => $this
        ->getLinkClass(),
    ]);
  }
  return $summary;
}