I was trying to use this module with custom pages (page_manager + panels + ctools_block)

i noticed that this formatter didn't render in a ctools_block, after some debug i noticed that on EntityField.php line 172 (ctool_block module) it only allows access to block if there is a element children.

$build = $entity->get($this->fieldName)->view($this->configuration['formatter']);
          // If there are actual renderable children, grant access.
          if (Element::children($build)) {
            return AccessResult::allowed();
          }
CommentFileSizeAuthor
#2 add_children-3013170-2.patch1 KBadrianodias

Comments

adrianodias created an issue. See original summary.

adrianodias’s picture

StatusFileSize
new1 KB
pixel burger’s picture

Assigned: Unassigned » pixel burger

  • adrianodias authored 381fb79 on 8.x-1.x
    Issue #3013170 by adrianodias: Missing element children
    
pixel burger’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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