public function Fieldset::settingsSummary in Field Group 8
Same name and namespace in other branches
- 8.3 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 91
Class
- Fieldset
- Plugin implementation of the 'fieldset' formatter.
Namespace
Drupal\field_group\Plugin\field_group\FieldGroupFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
if ($this
->getSetting('required_fields')) {
$summary[] = $this
->t('Mark as required');
}
if ($this
->getSetting('description')) {
$summary[] = $this
->t('Description : @description', array(
'@description' => $this
->getSetting('description'),
));
}
return $summary;
}