Replies: 1 comment 1 reply
-
Good idea! Just added a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It'd be really neat if there was an event dispatched when Craft populates field action menus – i.e. to provide a way for plugin and modules to add custom field menu actions.
I can think of a lot of use cases for this – for example, an LLM-powered plugin providing actions for per-field content generation or translating.
Implementation wise, I assume a possible place for such an event could be in BaseField::formHtml(), where the event would be able to provide both the field layout element instance (i.e. the custom or native field; the event sender), the field's current actions (if any), and the element the field layout form is being rendered for.
Beta Was this translation helpful? Give feedback.
All reactions