concrete/src/Http/ResponseAssetGroup.php
protected function addOutputAssetAt($item, $position)
    {
        if (!isset($this->outputAssets[$position])) {
            $this->outputAssets[$position] = [$item];
        } elseif (!in_array($item, $this->outputAssets[$position])) {
            $this->outputAssets[$position][] = $item;
        }
    }
protected function addOutputAssetAt($item, $position)
    {
        if (!isset($this->outputAssets[$position])) {
            $this->outputAssets[$position] = [$item];
        } elseif (!in_array($item, $this->outputAssets[$position])) {
            $this->outputAssets[$position][] = $item;
        }
    }
protected function addOutputAssetAt ( $ item , $ position ) { if ( ! isset ( $ this -> outputAssets [ $ position ] ) ) { $ this -> outputAssets [ $ position ] = [ $ item ] ; } elseif ( ! in_array ( $ item , $ this -> outputAssets [ $ position ] ) ) { $ this -> outputAssets [ $ position ] [ ] = $ item ; } }
Add an asset at a specific position.

@param \Concrete\Core\Asset\Asset $item
@param string $position Whether the asset should be loaded in the header or in the footer.

@see \Concrete\Core\Asset\AssetInterface::ASSET_POSITION_HEADER
@see \Concrete\Core\Asset\AssetInterface::ASSET_POSITION_FOOTER
Add an asset at a specific position .