You are here

public function VideoEmbedThumbnailFormatter::settingsSummary in Video 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/VideoEmbedThumbnailFormatter.php \Drupal\video\Plugin\Field\FieldFormatter\VideoEmbedThumbnailFormatter::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/VideoEmbedThumbnailFormatter.php, line 111

Class

VideoEmbedThumbnailFormatter
Plugin implementation of the thumbnail field formatter.

Namespace

Drupal\video\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary[] = $this
    ->t('Video thumbnail (@quality).', [
    '@quality' => $this
      ->getSetting('image_style'),
  ]);
  return $summary;
}