I'm trying to load a plugin's form into my component form in Joomla4. So my components getForm method is:
$form = $this->loadForm(
'com_mycomponent.member',
'memberform',
array( 'control' => 'jform', 'load_data' => $loadData )
);
Now I wish to get any possible custom user profile plugin based on a suffix added to the profile name. So if there is a custom profile plugin with the suffix "abc" then I want to get the form located at:
JPATH_SITE.'plugins/user/profileabc/forms'
I've tried the following with no success:
$this->loadForm('plg_user_profileabc','profileabc');
$this->loadForm('plg_user_profileabc','profileabc');
Form::loadFile(JPATH_SITE.'plugins/user/profileabc/forms/profileabc');
And I guess the second part of the process is to actually "merge" the forms into one? Any advice/guidance gratefully appreciated.