You are here

public function ComputedWidgetBase::settingsSummary in Computed Field 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldWidget/ComputedWidgetBase.php \Drupal\computed_field\Plugin\Field\FieldWidget\ComputedWidgetBase::settingsSummary()

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/ComputedWidgetBase.php, line 35

Class

ComputedWidgetBase
Base class for computed field's dummy widgets.

Namespace

Drupal\computed_field\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  $summary = [];
  $summary[] = $this
    ->t('This field should be in the visible area if it was added to the field list after content has been created for this bundle. You can save all those contents to apply the computed value and then safely move this field to the disabled area.');
  return $summary;
}