public function RadioactivityReferenceFieldItemList::defaultValuesForm in Radioactivity 4.0.x
Returns a form for the default value input.
Invoked from \Drupal\field_ui\Form\FieldConfigEditForm to allow administrators to configure instance-level default value.
Parameters
array $form: The form where the settings form is being included in.
\Drupal\Core\Form\FormStateInterface $form_state: The form state of the (entire) configuration form.
Return value
array The form definition for the field default value.
Overrides FieldItemList::defaultValuesForm
File
- src/
RadioactivityReferenceFieldItemList.php, line 16  
Class
- RadioactivityReferenceFieldItemList
 - Defines a item list class for radioactivity reference fields.
 
Namespace
Drupal\radioactivityCode
public function defaultValuesForm(array &$form, FormStateInterface $form_state) {
  // @todo Find a way to use the default value widget for Energy. The Energy
  // field is a computed field, and I failed to get save the default value
  // using the default values widget.
  return [];
}