public function ComputedWidgetBase::settingsSummary in Computed Field 3.x
Same name and namespace in other branches
- 8.2 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\FieldWidgetCode
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;
}