public function WebformEntityReferenceEntityFormatter::settingsSummary in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/Field/FieldFormatter/WebformEntityReferenceEntityFormatter.php \Drupal\webform\Plugin\Field\FieldFormatter\WebformEntityReferenceEntityFormatter::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 FormatterBase::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ WebformEntityReferenceEntityFormatter.php, line 134
Class
- WebformEntityReferenceEntityFormatter
- Plugin implementation of the 'Webform rendered entity' formatter.
Namespace
Drupal\webform\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
$summary[] = $this
->t('Set submission source entity: @source_entity', [
'@source_entity' => $this
->getSetting('source_entity') ? $this
->t('Yes') : $this
->t('No'),
]);
return $summary;
}