DEV: Allow plugins to add extra icons to category-link (PR #9743)

Screenshot from 2020-05-11 13-15-01

This allows for plugins to check a property on a category, add additional icons to the category-link html

GitHub

If these are only used in the helper I’d recommend moving them into there, and adding a plugin-api method to add one.

Oh, I didnt think about adding the actual array to the PluginApi. Okay, great!

It doesn’t need to be a class does it? The pattern we normally use here is to create a local instance variable:

let _extraIconRenderers = []

It’ll be scoped to this module.

Then you can export a function to add a new one to that local variable.

@eviltrout Third time is the charm here I think

should be fat arrow probably

I literally never know.