public function AmpVideoFormatter::settingsSummary in Accelerated Mobile Pages (AMP) 8.3
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/AmpVideoFormatter.php \Drupal\amp\Plugin\Field\FieldFormatter\AmpVideoFormatter::settingsSummary()
- 8.2 src/Plugin/Field/FieldFormatter/AmpVideoFormatter.php \Drupal\amp\Plugin\Field\FieldFormatter\AmpVideoFormatter::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 DescriptionAwareFileFormatterBase::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ AmpVideoFormatter.php, line 86
Class
- AmpVideoFormatter
- Plugin implementation of the 'amp_video' formatter.
Namespace
Drupal\amp\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
$summary = $this
->addToSummary($summary);
return [
implode('; ', $summary),
];
}