Back to Document class

Method setTitle

public \Joomla\CMS\Document\Document
setTitle
(mixed $title)
Sets the title of the document
Parameters
  • string $title The title to be set
Returns
  • \Joomla\CMS\Document\Document instance of $this to allow chaining
Since
  • 1.7.0
Class: Document
Project: Joomla

Method setTitle - Source code

/**
 * Sets the title of the document
 *
 * @param   string  $title  The title to be set
 *
 * @return  Document instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setTitle($title)
{
    $this->title = $title;
    return $this;
}