concrete/src/Http/ResponseAssetGroup.php
public function markAssetAsIncluded($assetType, $assetHandle = false)
    {
        $list = AssetList::getInstance();
        if ($assetType && $assetHandle) {
            $asset = $list->getAsset($assetType, $assetHandle);
        } else {
            $assetGroup = $list->getAssetGroup($assetType);
        }

        if (isset($assetGroup)) {
            $this->providedAssetGroup->addGroup($assetGroup);
        } elseif (isset($asset)) {
            $ap = new AssetPointer($asset->getAssetType(), $asset->getAssetHandle());
            $this->providedAssetGroup->add($ap);
        } else {
            $ap = new AssetPointer($assetType, $assetHandle);
            $this->providedAssetGroupUnmatched[] = $ap;
        }
    }
public function markAssetAsIncluded($assetType, $assetHandle = false)
    {
        $list = AssetList::getInstance();
        if ($assetType && $assetHandle) {
            $asset = $list->getAsset($assetType, $assetHandle);
        } else {
            $assetGroup = $list->getAssetGroup($assetType);
        }

        if (isset($assetGroup)) {
            $this->providedAssetGroup->addGroup($assetGroup);
        } elseif (isset($asset)) {
            $ap = new AssetPointer($asset->getAssetType(), $asset->getAssetHandle());
            $this->providedAssetGroup->add($ap);
        } else {
            $ap = new AssetPointer($assetType, $assetHandle);
            $this->providedAssetGroupUnmatched[] = $ap;
        }
    }
public function markAssetAsIncluded ( $ assetType , $ assetHandle = false ) { $ list = AssetList :: getInstance ( ) ; if ( $ assetType && $ assetHandle ) { $ asset = $ list -> getAsset ( $ assetType , $ assetHandle ) ; } else { $ assetGroup = $ list -> getAssetGroup ( $ assetType ) ; } if ( isset ( $ assetGroup ) ) { $ this -> providedAssetGroup -> addGroup ( $ assetGroup ) ; } elseif ( isset ( $ asset ) ) { $ ap = new AssetPointer ( $ asset -> getAssetType ( ) , $ asset -> getAssetHandle ( ) ) ; $ this -> providedAssetGroup -> add ( $ ap ) ; } else { $ ap = new AssetPointer ( $ assetType , $ assetHandle ) ; $ this -> providedAssetGroupUnmatched [ ] = $ ap ; } }
Notes in the current request that a particular asset has already been provided.

@param string $assetType E.g. 'css' or 'javascript'.
@param string|false $assetHandle E.g. 'core/colorpicker'.
Notes in the current request that a particular asset has already been provided .