You are here

public function Fieldset::settingsSummary in Field Group 8.3

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

Class

Fieldset
Plugin implementation of the 'fieldset' formatter.

Namespace

Drupal\field_group\Plugin\field_group\FieldGroupFormatter

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  if ($this
    ->getSetting('required_fields')) {
    $summary[] = $this
      ->t('Mark as required');
  }
  return $summary;
}