protected function _expandPlugin($file)
    {
        preg_match(self::PLUGIN_PATTERN, $file, $matches);
        if (empty($matches[1]) || empty($matches[2])) {
            throw new RuntimeException('Missing required parameters');
        }
        if (!CorePlugin::isLoaded($matches[1])) {
            throw new RuntimeException($matches[1] . ' is not a loaded plugin.');
        }
        $path = CorePlugin::path($matches[1]);

        return $path . 'webroot' . DS . $matches[2];
    }
protected function _expandPlugin($file)
    {
        preg_match(self::PLUGIN_PATTERN, $file, $matches);
        if (empty($matches[1]) || empty($matches[2])) {
            throw new RuntimeException('Missing required parameters');
        }
        if (!CorePlugin::isLoaded($matches[1])) {
            throw new RuntimeException($matches[1] . ' is not a loaded plugin.');
        }
        $path = CorePlugin::path($matches[1]);

        return $path . 'webroot' . DS . $matches[2];
    }
protected function _expandPlugin ( $ file ) { preg_match ( self :: PLUGIN_PATTERN , $ file , $ matches ) ; if ( empty ( $ matches [ 1 ] ) || empty ( $ matches [ 2 ] ) ) { throw new RuntimeException ( 'Missing required parameters' ) ; } if ( ! CorePlugin :: isLoaded ( $ matches [ 1 ] ) ) { throw new RuntimeException ( $ matches [ 1 ] . ' is not a loaded plugin.' ) ; } $ path = CorePlugin :: path ( $ matches [ 1 ] ) ; return $ path . 'webroot' . DS . $ matches [ 2 ] ; }
Resolve a plugin file to its full path.

@param string $file The theme file to find.
@throws RuntimeException when plugins are missing.
@return string The expanded path
Resolve a plugin file to its full path .