public function FlippingBookIframeFormatter::settingsSummary in Flipping Book 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/ FlippingBookIframeFormatter.php, line 69 
Class
- FlippingBookIframeFormatter
- Plugin implementation of the 'flipping_book_iframe_formatter' formatter.
Namespace
Drupal\flipping_book\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
  $summary = [
    'width' => $this
      ->t('Width: @width', [
      '@width' => $this
        ->getSetting('width'),
    ]),
    'height' => $this
      ->t('Height: @height', [
      '@height' => $this
        ->getSetting('height'),
    ]),
    'class' => $this
      ->t('CSS class: @class', [
      '@class' => $this
        ->getSetting('class'),
    ]),
  ];
  return $summary;
}