You are here

public function LazyLoad::settingsSummary in Video Embed Field 8

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

Class

LazyLoad
Plugin implementation of the thumbnail field formatter.

Namespace

Drupal\video_embed_field\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary[] = $this
    ->t('Thumbnail that lazy loads video embed code.');
  $summary[] = implode(',', $this->videoFormatter
    ->settingsSummary());
  $summary[] = implode(',', $this->thumbnailFormatter
    ->settingsSummary());
  return $summary;
}