public function AddtoCartFormatter::settingsSummary in Basic cart 8
Same name and namespace in other branches
- 8.6 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddToCartFormatter::settingsSummary()
- 8.2 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartFormatter::settingsSummary()
- 8.3 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartFormatter::settingsSummary()
- 8.4 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartFormatter::settingsSummary()
- 8.5 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartFormatter::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/ AddToCartFormatter.php, line 122
Class
- AddtoCartFormatter
- Plugin implementation of the 'addtocart' formatter.
Namespace
Drupal\basic_cart\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
$summary[]['#markup'] = t('Custom css classes for add to cart');
return $summary;
}