In Joomla 3.x we can use the JLayout class to override the files located in ROOT/layouts folder
According to this doc http://docs.joomla.org/J3.x:JLayout_Improvements_for_Joomla!
all we need to do is add something like this;
$layout = new JLayoutFile('joomla.edit.frontediting_modules'); $layout->addIncludePaths(YJSGPATH .'includes/html/layouts'); print_r($layout);
This snippet is added in my system plugin in onAfterRoute function.
Now the array looks fine and points to the right direction
JLayoutFile Object ( [layoutId:protected] => joomla.edit.frontediting_modules [basePath:protected] => [fullPath:protected] => [includePaths:protected] => Array (  => D:\wamp\www\Development\Yjsgv2-DEV\3x\plugins\system\yjsg\includes/html/layouts  => D:\wamp\www\Development\Yjsgv2-DEV\3x/templates/creatus/html/layouts  => D:\wamp\www\Development\Yjsgv2-DEV\3x/layouts ) [options:protected] => Joomla\Registry\Registry Object ( [data:protected] => stdClass Object ( [component] => [client] => 0 ) ) [debugMessages:protected] => Array ( ) )
and file frontediting_modules.php is located in my folder http://prntscr.com/4lijlf
but the override is not happening.
I removed the call for bootstrap popover and tooltips http://prntscr.com/4lijz3 just to test it but it does not work
if I move the override folder to my template html folder the override works.
Can someone please advise.