You are here

public function EntityReferenceShsFormatter::settingsSummary in Simple hierarchical select 8

Same name and namespace in other branches
  1. 2.0.x 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 43

Class

EntityReferenceShsFormatter
Plugin implementation of the 'entity reference taxonomy term SHS' formatter.

Namespace

Drupal\shs\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = [];
  $summary[] = $this
    ->getSetting('link') ? t('Link item labels to the referenced entities') : t('Do not create links');
  return $summary;
}