- Issue created by @Defcon0
An example hook implementation would be:
/** * Add content moderation actions as sticky actions. */ #[Hook('gin_extend_sticky_form_actions')] public function ginExtendStickyFormActions(array $actions): array { foreach (array_keys($this->config_factory->get('workflows.workflow.content_moderation')->get('type_settings.states')) as $state) { $actions[] = 'moderation_state_' . $state; } return $actions; }
- 🇨🇭Switzerland saschaeggi Zurich
Hey @defcon0
Is this any different from ✨ Allow the visible actions allowlist to be altered Active ? Can we close this out as a duplicate?
- 🇨🇭Switzerland saschaeggi Zurich
Also if I'm allowed to provide a small UX feedback here: A single primary button (use secondary for the other actions) will enhance the UX for users in your example as it adds guidance on what the main action should be (assuming it's Save)
Ah, I searched for issues but didn't find that one. Yes, then it can be closed.
- 🇨🇭Switzerland saschaeggi Zurich
Thanks for confirming! Feel free to RTBC the other MR