public function EntityReferenceBrowserTableWidget::settingsForm in Entity Browser - Table Layout 8
File
- src/
Plugin/ Field/ FieldWidget/ EntityReferenceBrowserTableWidget.php, line 110
Class
- EntityReferenceBrowserTableWidget
- Plugin implementation of the 'entity_reference_browser_table_widget' widget.
Namespace
Drupal\entity_browser_table\Plugin\Field\FieldWidgetCode
public function settingsForm(array $form, FormStateInterface $form_state) {
$form = parent::settingsForm($form, $form_state);
$form['additional_fields'] = [
'#type' => 'fieldset',
'#title' => $this
->t('Additional Fields'),
];
$form['additional_fields']['options'] = [
'#type' => 'checkboxes',
'#title' => $this
->t('Additional Fields'),
'#options' => [
'status' => $this
->t('Status or, if enabled, moderation status.'),
],
'#weight' => '1',
'#default_value' => $this
->getSetting('additional_fields')['options'],
];
return $form;
}