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.

Command icon 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

pcambra created an issue. See original summary.

pcambra’s picture

Status: Active » Needs review
e0ipso’s picture

Status: Needs review » Fixed

I 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.

//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support to this project makes my volunteer contributions more sustainable.
There are multiple ways to show appreciation for the work I did in this project, those include:
  • Triaging issues, and adding more context to existing issues.
  • Writing documentation, or patches for this project.
  • Writing blog posts, speaking about it at conferences.

  • e0ipso committed 34bf193e on 1.x authored by pcambra
    Issue #3416990 by pcambra: Display only fields (...
e0ipso’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.