Back to Document class

Method setWebAssetManager

public \Joomla\CMS\Document\Document
setWebAssetManager
(\Joomla\CMS\WebAsset\WebAssetManager $webAsset)
Set WebAsset manager
Parameters
  • \Joomla\CMS\WebAsset\WebAssetManager $webAsset The WebAsset instance
Returns
  • \Joomla\CMS\Document\Document
Since
  • 4.0.0
Class: Document
Project: Joomla

Method setWebAssetManager - Source code

/**
 * Set WebAsset manager
 *
 * @param   WebAssetManager  $webAsset  The WebAsset instance
 *
 * @return  Document
 *
 * @since   4.0.0
 */
public function setWebAssetManager(WebAssetManager $webAsset) : self
{
    $this->webAssetManager = $webAsset;
    return $this;
}