Problem/Motivation
If you declare a field through hook_entity_extra_field_info or the extra_field module, you can configure it just fine on the field group props, but it is not rendered.
This is because the Util::computePropValues method excludes anything that is not a field.
$skip_static_mapping =
!empty($field_name)
&& $entity instanceof FieldableEntityInterface
&& $entity->hasField($field_name)
&& !$entity->get($field_name)->isEmpty();
Proposed resolution
Include the view mode and get the display components from the display object, I'm adding a MR with a proposed solution but I'm 100% sure that there's a better way to do this as I'm focusing on the field group bit of the module right now and maybe can be included in a more general way.
Remaining tasks
Find a better way to pass the view mode.
Issue fork sdc_display-3416990
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
pcambraComment #4
e0ipsoI think this solution is good. I am not 100% sure either, but I am convinced your solution is appropriate for beta testing. We can address regressions when/if they arise.
Comment #6
e0ipso