You are here

public function SimpleSitemap::publish in Simple XML sitemap 4.x

Overrides SimpleSitemapInterface::publish

File

src/Entity/SimpleSitemap.php, line 139

Class

SimpleSitemap
Defines the simple_sitemap entity.

Namespace

Drupal\simple_sitemap\Entity

Code

public function publish() : SimpleSitemapInterface {
  \Drupal::entityTypeManager()
    ->getStorage('simple_sitemap')
    ->publish($this);
  return $this;
}