- Issue created by @liquidcms
- First commit to issue fork.
- Merge request !133Issue #3420605: Reference field to Group Role throws warning fixed → (Open) created by himanshu_jhaloya
When adding a Reference field to the Group Role config entity from a field in a paragraph entity, this WARNING is thrown:
Warning: Undefined array key "base_plugin_label" in Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem->fieldSettingsForm() (line 404 of core\lib\Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem.php).
Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem->fieldSettingsForm(Array, Object) (Line: 118)
Drupal\field_ui\Form\FieldConfigEditForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('field_config_edit_form', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
It happens both when the field storage is set and the field settings are set.
The field does seem to save correctly however and it does work.
If i were to guess i would say an annotation missing on the config entity.
Install Drupal 10.1.x
Install groups v3
install paragraphs module
Configure a group
configure a paragraph entity for group members with fields such as user reference, entity reference of type "group role"
configure a field in that group with a reference to that paragraph entity
now edit the entity reference group role setting, get the notice.
TBD
TBD
TBD
TBD
TBD
Active
3.2
Code