src/View/Helper/UrlHelper.php
protected function _findPluginAsset($source, $type = null)
    {
        list($plugin, $path) = pluginSplit($source);
        $plugin = (string) $plugin;
        if (Plugin::loaded($plugin)) {
            $plgPath = implode('/', [Plugin::path($plugin), Configure::read('App.webroot'), $type, $path]);
            $plgPath = FS::clean($plgPath, '/');
            if (FS::isFile($plgPath)) {
                return $plgPath;
            }
        }

        return false;
    }
protected function _findPluginAsset($source, $type = null)
    {
        list($plugin, $path) = pluginSplit($source);
        $plugin = (string) $plugin;
        if (Plugin::loaded($plugin)) {
            $plgPath = implode('/', [Plugin::path($plugin), Configure::read('App.webroot'), $type, $path]);
            $plgPath = FS::clean($plgPath, '/');
            if (FS::isFile($plgPath)) {
                return $plgPath;
            }
        }

        return false;
    }
protected function _findPluginAsset ( $ source , $ type = null ) { list ( $ plugin , $ path ) = pluginSplit ( $ source ) ; $ plugin = ( string ) $ plugin ; if ( Plugin :: loaded ( $ plugin ) ) { $ plgPath = implode ( '/' , [ Plugin :: path ( $ plugin ) , Configure :: read ( 'App.webroot' ) , $ type , $ path ] ) ; $ plgPath = FS :: clean ( $ plgPath , '/' ) ; if ( FS :: isFile ( $ plgPath ) ) { return $ plgPath ; } } return false ; }
Find plugin assets by source.

@param string $source
@param null|string $type
@return bool|string
Find plugin assets by source .