You are here

public function AmpImageCarousel::settingsSummary in Accelerated Mobile Pages (AMP) 8.3

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 ImageFormatter::settingsSummary

File

src/Plugin/Field/FieldFormatter/AmpImageCarousel.php, line 100

Class

AmpImageCarousel
Plugin implementation of the 'amp_image_carousel' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  $summary = $this
    ->addToSummary($summary);
  return [
    implode('; ', $summary),
  ];
}