src/Library.php
public function getPublicPath()
    {
        $relativePath = $this->getRelativePath();

        // 4.0 compatibility: If there is no public folder, and this is a vendor path,
        // remove the leading `vendor` from the destination
        if (!$this->publicPathExists() && $this->installedIntoVendor()) {
            $relativePath = substr($relativePath, strlen('vendor/'));
        }

        return Util::joinPaths($this->getBasePublicPath(), $relativePath);
    }
public function getPublicPath()
    {
        $relativePath = $this->getRelativePath();

        // 4.0 compatibility: If there is no public folder, and this is a vendor path,
        // remove the leading `vendor` from the destination
        if (!$this->publicPathExists() && $this->installedIntoVendor()) {
            $relativePath = substr($relativePath, strlen('vendor/'));
        }

        return Util::joinPaths($this->getBasePublicPath(), $relativePath);
    }
public function getPublicPath ( ) { $ relativePath = $ this -> getRelativePath ( ) ; // 4.0 compatibility: If there is no public folder, and this is a vendor path, // remove the leading `vendor` from the destination if ( ! $ this -> publicPathExists ( ) && $ this -> installedIntoVendor ( ) ) { $ relativePath = substr ( $ relativePath , strlen ( 'vendor/' ) ) ; } return Util :: joinPaths ( $ this -> getBasePublicPath ( ) , $ relativePath ) ; }
Get base path to map resources for this module

@return string Path with trimmed slashes. E.g. /var/www/public/resources/vendor/silverstripe/module
Get base path to map resources for this module