You are here

public function ListBase::settingsSummary in Double Field 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldFormatter/ListBase.php \Drupal\double_field\Plugin\Field\FieldFormatter\ListBase::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 Base::settingsSummary

1 call to ListBase::settingsSummary()
HtmlList::settingsSummary in src/Plugin/Field/FieldFormatter/HtmlList.php
Returns a short summary for the current formatter settings.
1 method overrides ListBase::settingsSummary()
HtmlList::settingsSummary in src/Plugin/Field/FieldFormatter/HtmlList.php
Returns a short summary for the current formatter settings.

File

src/Plugin/Field/FieldFormatter/ListBase.php, line 40

Class

ListBase
Base class for list formatters.

Namespace

Drupal\double_field\Plugin\Field\FieldFormatter

Code

public function settingsSummary() : array {
  $summary = [];
  if ($this
    ->getSetting('inline')) {
    $summary[] = $this
      ->t('Display as inline element');
  }
  return array_merge($summary, parent::settingsSummary());
}