Back to Document class

Method setPreloadManager

public \Joomla\CMS\Document\Document
setPreloadManager
(\Joomla\CMS\Document\PreloadManagerInterface $preloadManager)
Set the preload manager
Parameters
  • \Joomla\CMS\Document\PreloadManagerInterface $preloadManager The preload manager service
Returns
  • \Joomla\CMS\Document\Document instance of $this to allow chaining
Since
  • 4.0.0
Class: Document
Project: Joomla

Method setPreloadManager - Source code

/**
 * Set the preload manager
 *
 * @param   PreloadManagerInterface  $preloadManager  The preload manager service
 *
 * @return  Document instance of $this to allow chaining
 *
 * @since   4.0.0
 */
public function setPreloadManager(PreloadManagerInterface $preloadManager) : self
{
    $this->preloadManager = $preloadManager;
    return $this;
}