You are here

public function ListFormatter::settingsSummary in Facebook Instant Articles 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/ListFormatter.php \Drupal\fb_instant_articles\Plugin\Field\FieldFormatter\ListFormatter::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/ListFormatter.php, line 54

Class

ListFormatter
Plugin implementation of the 'fbia_list' formatter.

Namespace

Drupal\fb_instant_articles\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  return [
    $this
      ->getSetting('is_ordered') ? $this
      ->t('Ordered') : $this
      ->t('Unordered'),
  ];
}