src/Ladybug/Installer/Composer/Installer.php
protected function getRootPath(PackageInterface $package)
    {
        $rootPath = $this->vendorDir . '/raulfraile/ladybug-themes/Ladybug/';

        if ($this->composer->getPackage()->getName() === 'raulfraile/ladybug') {
            $rootPath = 'data/' . ($package->getType() === self::PACKAGE_TYPE_THEME ? 'themes' : 'plugins') . '/Ladybug/';
        }

        $rootPath .= ($package->getType() === self::PACKAGE_TYPE_THEME) ? 'Theme' : 'Plugin';

        return $rootPath;
    }
protected function getRootPath(PackageInterface $package)
    {
        $rootPath = $this->vendorDir . '/raulfraile/ladybug-themes/Ladybug/';

        if ($this->composer->getPackage()->getName() === 'raulfraile/ladybug') {
            $rootPath = 'data/' . ($package->getType() === self::PACKAGE_TYPE_THEME ? 'themes' : 'plugins') . '/Ladybug/';
        }

        $rootPath .= ($package->getType() === self::PACKAGE_TYPE_THEME) ? 'Theme' : 'Plugin';

        return $rootPath;
    }
protected function getRootPath ( PackageInterface $ package ) { $ rootPath = $ this -> vendorDir . '/raulfraile/ladybug-themes/Ladybug/' ; if ( $ this -> composer -> getPackage ( ) -> getName ( ) === 'raulfraile/ladybug' ) { $ rootPath = 'data/' . ( $ package -> getType ( ) === self :: PACKAGE_TYPE_THEME ? 'themes' : 'plugins' ) . '/Ladybug/' ; } $ rootPath .= ( $ package -> getType ( ) === self :: PACKAGE_TYPE_THEME ) ? 'Theme' : 'Plugin' ; return $ rootPath ; }
Returns the root installation path for templates.

@param PackageInterface $package

@return string a path relative to the root of the composer.json
Returns the root installation path for templates .