cms
cms copied to clipboard
getActionMenuItems and actionMenuItems can be dependent on an element
Description
Allow $element and $static to be passed to the field’s getActionMenuItems() and actionMenuItems() so that action menu items can be added depending on whether the field is in an Element context or not.
As it’s potentially a breaking change, we might actually have to target v6?
Related issues
#17404 More info & context: https://github.com/craftcms/cms/pull/17416
As it’s potentially a breaking change, we might actually have to target v6?
Yeah, this needs to wait.