You are here

public function TransactionFormLinkWidget::settingsSummary in Commerce Stock 8

Returns a short summary for the current widget settings.

If an empty result is returned, a UI can still be provided to display a settings form in case the widget has configurable settings.

Return value

array A short summary of the widget settings.

Overrides WidgetBase::settingsSummary

File

modules/ui/src/Plugin/Field/FieldWidget/TransactionFormLinkWidget.php, line 29

Class

TransactionFormLinkWidget
Plugin implementation of the 'commerce_stock_level_transaction_form_link' widget.

Namespace

Drupal\commerce_stock_ui\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  $summary = [];
  $summary[] = $this
    ->t('Provides a link to stock transaction form.');
  return $summary;
}