You are here

public function GridWidget::settingsSummary in Paragraphs grid 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

src/Plugin/Field/FieldWidget/GridWidget.php, line 143

Class

GridWidget
Plugin implementation of the 'grid_widget' widget.

Namespace

Drupal\paragraphs_grid\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  $summary = [];
  $all_view_modes = implode(', ', $this
    ->getSetting('excluded_view_modes'));
  $summary[] = $this
    ->t('Excluded view modes: @view_modes', [
    '@view_modes' => $all_view_modes,
  ]);
  return $summary;
}