You are here

public function Tabs::settingsSummary in Field Group 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/field_group/FieldGroupFormatter/Tabs.php \Drupal\field_group\Plugin\field_group\FieldGroupFormatter\Tabs::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

array A short summary of the formatter settings.

Overrides FieldGroupFormatterBase::settingsSummary

File

src/Plugin/field_group/FieldGroupFormatter/Tabs.php, line 120

Class

Tabs
Plugin implementation of the 'horizontal_tabs' formatter.

Namespace

Drupal\field_group\Plugin\field_group\FieldGroupFormatter

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  $summary[] = $this
    ->t('Direction: @direction', [
    '@direction' => $this
      ->getSetting('direction'),
  ]);
  return $summary;
}