$path = JPluginHelper::getLayoutPath('myplugin', 'default');
$path = JPluginHelper::getLayoutPath('myplugin', 'custom');This code gets the path to the 'custom' layout file of the 'myplugin' plugin. Both examples assume that the 'myplugin' plugin is installed and enabled on the Joomla website. This method belongs to the Joomla Platform library.