cms icon indicating copy to clipboard operation
cms copied to clipboard

getActionMenuItems and actionMenuItems can be dependent on an element

Open i-just opened this issue 8 months ago • 1 comments

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

i-just avatar Jun 10 '25 08:06 i-just

As it’s potentially a breaking change, we might actually have to target v6?

Yeah, this needs to wait.

brandonkelly avatar Jun 18 '25 18:06 brandonkelly