Skip to content
Snippets Groups Projects

Issue #3472822: add a description for checkbox/radio button widget in manage form display

Open Issue #3472822: add a description for checkbox/radio button widget in manage form display
1 unresolved thread
Open Ann Mary Sruthy requested to merge issue/drupal-3472822:3472822-unclear-how-to into 11.x
1 unresolved thread
1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
@@ -13,6 +13,7 @@
#[FieldWidget(
id: 'options_buttons',
label: new TranslatableMarkup('Check boxes/radio buttons'),
description: new TranslatableMarkup('This widget uses radio buttons if the "Allowed number of values" is set to 1. If the number of allowed values is more than 1 or unlimited, checkboxes will be used.'),
field_types: [
'boolean',
'entity_reference',
@@ -68,4 +69,13 @@ protected function getEmptyLabel() {
}
}
/**
* {@inheritdoc}
*/
public function settingsSummary(): array {
$summary = [];
$summary[] = $this->t('This widget uses radio buttons if the "Allowed number of values" is set to 1. If the number of allowed values is more than 1 or unlimited, checkboxes will be used.');
return $summary;
}
}
Loading