public function onRegisterFromCache()
    {
        if ($this->isCachingEnabled()) {
            $blockId = $this->getEnvOption('id');
        
            $cacheKeyAssets = ['blockassets', $blockId];
            $cacheKeyAssetBundles = ['blockassetbundles', $blockId];
        
            $assets = Yii::$app->cache->get($cacheKeyAssets) ?: [];
            $assetBundles = Yii::$app->cache->get($cacheKeyAssetBundles) ?: [];
        
            PhpBlockView::registerToAppView($assets, $assetBundles);
        }
    }
public function onRegisterFromCache()
    {
        if ($this->isCachingEnabled()) {
            $blockId = $this->getEnvOption('id');
        
            $cacheKeyAssets = ['blockassets', $blockId];
            $cacheKeyAssetBundles = ['blockassetbundles', $blockId];
        
            $assets = Yii::$app->cache->get($cacheKeyAssets) ?: [];
            $assetBundles = Yii::$app->cache->get($cacheKeyAssetBundles) ?: [];
        
            PhpBlockView::registerToAppView($assets, $assetBundles);
        }
    }
public function onRegisterFromCache ( ) { if ( $ this -> isCachingEnabled ( ) ) { $ blockId = $ this -> getEnvOption ( 'id' ) ; $ cacheKeyAssets = [ 'blockassets' , $ blockId ] ; $ cacheKeyAssetBundles = [ 'blockassetbundles' , $ blockId ] ; $ assets = Yii :: $ app -> cache -> get ( $ cacheKeyAssets ) ? : [ ] ; $ assetBundles = Yii :: $ app -> cache -> get ( $ cacheKeyAssetBundles ) ? : [ ] ; PhpBlockView :: registerToAppView ( $ assets , $ assetBundles ) ; } }
Load the block assets from cache and register to the app view.

@since 1.0.5
Load the block assets from cache and register to the app view .