Back to Document class

Method setLink

public \Joomla\CMS\Document\Document
(mixed $url)
Sets the document link
Parameters
  • string $url A url
Returns
  • \Joomla\CMS\Document\Document instance of $this to allow chaining
Since
  • 1.7.0
Class: Document
Project: Joomla

Method setLink - Source code

/**
 * Sets the document link
 *
 * @param   string  $url  A url
 *
 * @return  Document instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setLink($url)
{
    $this->link = $url;
    return $this;
}