Back to JsonDocument class

Method setName

public \Joomla\CMS\Document\JsonDocument
setName
(mixed $name = 'joomla')
Sets the document name
Parameters
  • string $name Document name
Returns
  • \Joomla\CMS\Document\JsonDocument instance of $this to allow chaining
Since
  • 1.7.0
Class: JsonDocument
Project: Joomla

Method setName - Source code

/**
 * Sets the document name
 *
 * @param   string  $name  Document name
 *
 * @return  JsonDocument instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setName($name = 'joomla')
{
    $this->_name = $name;
    return $this;
}