public function FieldCollectionItemList::defaultValuesFormSubmit in Field collection 8.3
Override submission handler from EntityReferenceFieldItemList.
Default values do not apply to field collection items. This override is needed to stop an error message when the field settings form is submitted.
Overrides EntityReferenceFieldItemList::defaultValuesFormSubmit
File
- src/
FieldCollectionItemList.php, line 19
Class
- FieldCollectionItemList
- Defines a item list class for field collection fields.
Namespace
Drupal\field_collectionCode
public function defaultValuesFormSubmit(array $element, array &$form, FormStateInterface $form_state) {
return [];
}