You are here

public function EntityReferenceLabelFormatter::settingsSummary in Entity reference 8

Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().

File

lib/Drupal/entityreference/Plugin/field/formatter/EntityReferenceLabelFormatter.php, line 50
Definition of Drupal\entityreference\Plugin\field\formatter\EntityReferenceLabelFormatter.

Class

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

Namespace

Drupal\entityreference\Plugin\field\formatter

Code

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