We do some clever stuff in the spotlight widget by adding extra fields to it that we pull data from when rendering. This is great for Panopoly itself, but a contrib module can't do this, because the entity itself (which we'd need to pull data off extra fields) in the 'panopoly_spotlight_wrapper' and 'panopoly_spotlight_view' theme functions.

By simply passing the entity type and entity object in, contrib modules can start doing similarly clever things!

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Status: Active » Needs review
StatusFileSize
new834 bytes

Here's the patch!

dsnopek’s picture

Status: Needs review » Fixed

This change is simple enough - committed. :-)

  • dsnopek committed f826df8 on 7.x-1.x
    Update Panopoly Widgets for Issue #2653834 by dsnopek: Pass entity to '...

Status: Fixed » Closed (fixed)

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