public function LayoutBuilderCopyWidget::settingsSummary in Layout Builder Asymmetric Translation 8.2
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/ LayoutBuilderCopyWidget.php, line 72
Class
- LayoutBuilderCopyWidget
- A widget to display the copy widget form.
Namespace
Drupal\layout_builder_at\Plugin\Field\FieldWidgetCode
public function settingsSummary() {
$summary = [];
$summary[] = t('Appearance: @checked', [
'@checked' => $this
->options()[$this
->getSetting('appearance')],
]);
return $summary;
}