Back to RouterViewConfiguration class

Method setKey

public \Joomla\CMS\Component\Router\RouterViewConfiguration
setKey
(mixed $key)
Set the key-identifier for the view
Parameters
  • string $key Key of the view
Returns
  • \Joomla\CMS\Component\Router\RouterViewConfiguration This object for chaining
Since
  • 3.5

Method setKey - Source code

/**
 * Set the key-identifier for the view
 *
 * @param   string  $key  Key of the view
 *
 * @return  RouterViewConfiguration  This object for chaining
 *
 * @since   3.5
 */
public function setKey($key)
{
    $this->key = $key;
    return $this;
}