yii\web\AssetManager::getAssetPath PHP Метод

getAssetPath() публичный Метод

Returns the actual file path for the specified asset.
public getAssetPath ( AssetBundle $bundle, string $asset ) : string | false
$bundle AssetBundle the asset bundle which the asset file belongs to
$asset string the asset path. This should be one of the assets listed in [[AssetBundle::$js]] or [[AssetBundle::$css]].
Результат string | false the actual file path, or `false` if the asset is specified as an absolute URL
    public function getAssetPath($bundle, $asset)
    {
        if (($actualAsset = $this->resolveAsset($bundle, $asset)) !== false) {
            return Url::isRelative($actualAsset) ? $this->basePath . '/' . $actualAsset : false;
        } else {
            return Url::isRelative($asset) ? $bundle->basePath . '/' . $asset : false;
        }
    }