public function EntityReferenceLabelFormatter::settingsSummary

Returns a short summary for the current formatter settings.

If an empty result is returned, the formatter is assumed to have no configurable settings, and no UI will be provided to display a settings form.

Return value

array() A short summary of the formatter settings.

Overrides FormatterBase::settingsSummary

File

drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceLabelFormatter.php, line 49
Contains \Drupal\entity_reference\Plugin\field\formatter\EntityReferenceLabelFormatter.

Class

EntityReferenceLabelFormatter
Plugin implementation of the 'entity reference label' formatter.

Namespace

Drupal\entity_reference\Plugin\field\formatter

Code

public function settingsSummary() {
  $summary = array();
  $summary[] = $this
    ->getSetting('link') ? t('Link to the referenced entity') : t('No link');
  return $summary;
}