You are here

public function XquantityWidget::settingsSummary in Commerce Extended Quantity 8

File

src/Plugin/Field/FieldWidget/XquantityWidget.php, line 267

Class

XquantityWidget
Overrides the 'xnumber' widget.

Namespace

Drupal\commerce_xquantity\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  $summary = [];
  $settings = $this
    ->getFormDisplayModeSettings();
  unset($settings['qty_price']);
  foreach ($settings as $name => $value) {
    $summary[] = "{$name}: {$value}";
  }
  return $summary;
}