You are here

public function XmlSitemap::setId in XML sitemap 8

Same name and namespace in other branches
  1. 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\Entity

Code

public function setId($id) {
  $this->id = $id;
  return $this;
}