Problem/Motivation

Allow users to choose their own icon via the icon API.

This had already been developed during work done on the following ticket, "Icon for local tasks not showing," but because this would cause incompatibility with Drupal 10.x, it was decided to create a separate ticket for this.

Steps to reproduce

  • Install module and add the local tasks block.
  • No option to add an icon is provided and the default is used on the site.

Proposed resolution

Add the option in the block to select an icon.

Remaining tasks

Create and review MR.

User interface changes

Icon will change according to the user's choice.

API changes

None

Data model changes

None

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

dtfabio created an issue. See original summary.

tim-diels’s picture

Assigned: Unassigned » tim-diels
tim-diels’s picture

Assigned: tim-diels » Unassigned

jyrkimouton made their first commit to this issue’s fork.

jyrkimouton’s picture

Status: Active » Needs review
tim-diels’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thanks!

tim-diels’s picture

Status: Reviewed & tested by the community » Needs work

It seems we can only provide this option for Drupal core 11.2.x and above. So let's adjust the code so that it does not show for lower then 11.2.x

tim-diels’s picture

Status: Needs work » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

tim-diels’s picture

Status: Fixed » Closed (fixed)