public function getModuleForAsset(AssetInterface $asset)
    {
        $sourceRoot = $asset->getSourceRoot();
        $bundleName = $this->bundleMap[$sourceRoot];
        if (!isset($bundleName)) {
            throw new \Exception('Could not map the asset to a bundle');
        }

        return $bundleName . '.templates';
    }
public function getModuleForAsset(AssetInterface $asset)
    {
        $sourceRoot = $asset->getSourceRoot();
        $bundleName = $this->bundleMap[$sourceRoot];
        if (!isset($bundleName)) {
            throw new \Exception('Could not map the asset to a bundle');
        }

        return $bundleName . '.templates';
    }
public function getModuleForAsset ( AssetInterface $ asset ) { $ sourceRoot = $ asset -> getSourceRoot ( ) ; $ bundleName = $ this -> bundleMap [ $ sourceRoot ] ; if ( ! isset ( $ bundleName ) ) { throw new \ Exception ( 'Could not map the asset to a bundle' ) ; } return $ bundleName . '.templates' ; }
Create module name for asset.
This is bundle name.

@param AssetInterface $asset
@return string
Create module name for asset . This is bundle name .