⇦ Back to OpensearchDocument classMethod addUrl
public \Joomla\CMS\Document\OpensearchDocument
addUrl
(\Joomla\CMS\Document\Opensearch\OpensearchUrl $url)
Adds a URL to the Opensearch description.
Parameters
- \Joomla\CMS\Document\Opensearch\OpensearchUrl $url The url to add to the description.
Returns
- \Joomla\CMS\Document\OpensearchDocument instance of $this to allow chaining
Since
Method addUrl - Source code
/**
* Adds a URL to the Opensearch description.
*
* @param OpensearchUrl $url The url to add to the description.
*
* @return OpensearchDocument instance of $this to allow chaining
*
* @since 1.7.0
*/
public function addUrl(OpensearchUrl $url)
{
$this->_urls[] = $url;
return $this;
}