- First commit to issue fork.
- Merge request !116Issue #3197518 by ivnish, jkeasley: Make getEntity available in FlagConfirmFormBase.php → (Merged) created by ivnish
Automatically closed - issue fixed for 2 weeks with no activity.
Using Flag module on the d8 site, which has a custom save function that requires access to the flaggable entity for some functionality
As currently implemented the flag confirm form doesn't provide any method to access the flaggable entity from the $form or $form_state objects
create a hook_form_FORM_ID_alter() function in a custom module, customising the flag confirm form.
attempt to access the related entity object from the data made available by the hook
Add a public getEntity method to the FlagConfirmFormBase.php class
adds a public method getEntity which returns $this->entity
Active
4.0
Miscellaneous
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.