public function XmlSitemap::setId in XML sitemap 8
Same name and namespace in other branches
- 2.x src/Entity/XmlSitemap.php \Drupal\xmlsitemap\Entity\XmlSitemap::setId()
Sets the id of the sitemap.
Parameters
string $id: The sitemap id.
Return value
\Drupal\xmlsitemap\XmlSitemapInterface The class instance that this method is called on.
Overrides XmlSitemapInterface::setId
File
- src/
Entity/ XmlSitemap.php, line 144
Class
- XmlSitemap
- Defines the XmlSitemap entity.
Namespace
Drupal\xmlsitemap\EntityCode
public function setId($id) {
$this->id = $id;
return $this;
}