Problem/Motivation

  • icons/ previews for paragraphs sets can only be set by defining a file uuid, which needs to be available whithin the page or created via an update hook
  • supplying a static path to the icon, which can be set via alter hook would be much more flexible

Proposed resolution

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

SteffenR created an issue. See original summary.

steffenr’s picture

Assigned: Unassigned » steffenr

steffenr’s picture

Assigned: steffenr » Unassigned
Status: Active » Needs review

Added MR which allows to add a custom icon via the hook_paragraphs_sets_set_static_icon_uri_alter.

aschiwi’s picture

Status: Needs review » Reviewed & tested by the community

Works nice for me, thank you for the patch!

  • SteffenR authored 92e3088c on 3.0.x
    Issue #3305194 by SteffenR: Allow static icon for paragraphs_sets set
    

  • SteffenR authored a96ef5dc on 8.x-2.x
    Issue #3305194 by SteffenR: Allow static icon for paragraphs_sets set
    
stborchert’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks! Added to 8.x-2.x and 3.0.x.

Status: Fixed » Closed (fixed)

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