public function TwitterFormatterBase::settingsSummary in Twitter Embed 8
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/ TwitterFormatterBase.php, line 40
Class
- TwitterFormatterBase
- Class TwitterFormatterBase.
Namespace
Drupal\twitter_embed\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
$summary[] = $this
->t('Display style: @display_style', [
'@display_style' => $this
->getSettings()['display_style'],
]);
return $summary;
}