public function getNamedAssetUrl($assetName, $type = null)
    {
        $manifestEntry = $this->getManifestEntry(
            $assetName,
            $assetName,
            'This is probably a commons chunk - is it configured by this name in webpack.config.js?'
        );

        if ($type === null) {
            $type = self::TYPE_JS;
        }

        return isset($manifestEntry[$type]) ? $manifestEntry[$type] : null;
    }
public function getNamedAssetUrl($assetName, $type = null)
    {
        $manifestEntry = $this->getManifestEntry(
            $assetName,
            $assetName,
            'This is probably a commons chunk - is it configured by this name in webpack.config.js?'
        );

        if ($type === null) {
            $type = self::TYPE_JS;
        }

        return isset($manifestEntry[$type]) ? $manifestEntry[$type] : null;
    }
public function getNamedAssetUrl ( $ assetName , $ type = null ) { $ manifestEntry = $ this -> getManifestEntry ( $ assetName , $ assetName , 'This is probably a commons chunk - is it configured by this name in webpack.config.js?' ) ; if ( $ type === null ) { $ type = self :: TYPE_JS ; } return isset ( $ manifestEntry [ $ type ] ) ? $ manifestEntry [ $ type ] : null ; }
Gets URL for specified named asset - should be used for commons chunks.

Exception is thrown if manifest does not exit or asset is not in the manifest.

Type is not guessed as commons chunk only has a name and no path.

@param string $assetName
@param string|null $type specifies type in manifest, usually "js" or "css"

@return string|null null is returned if type is provided and missing in manifest

@throws RuntimeException

@api
Gets URL for specified named asset - should be used for commons chunks .