public function EntityReferenceShsFormatter::settingsSummary in Simple hierarchical select 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/EntityReferenceShsFormatter.php \Drupal\shs\Plugin\Field\FieldFormatter\EntityReferenceShsFormatter::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 EntityReferenceLabelFormatter::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ EntityReferenceShsFormatter.php, line 56
Class
- EntityReferenceShsFormatter
- Plugin implementation of the 'entity reference taxonomy term SHS' formatter.
Namespace
Drupal\shs\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
$summary[] = $this
->getSetting('link') ? $this
->t('Link item labels to the referenced entities') : $this
->t('Do not create links');
return $summary;
}