You are here

protected function DefaultSitemapGenerator::isHreflangSitemap in Simple XML sitemap 8.3

Checks if sitemap is hreflang compliant.

Return value

bool

2 calls to DefaultSitemapGenerator::isHreflangSitemap()
DefaultSitemapGenerator::addSitemapAttributes in src/Plugin/simple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php
Adds attributes to the sitemap.
DefaultSitemapGenerator::addUrl in src/Plugin/simple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php
Adds a URL element to the sitemap.

File

src/Plugin/simple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php, line 168

Class

DefaultSitemapGenerator
Class DefaultSitemapGenerator @package Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator

Code

protected function isHreflangSitemap() {
  return NULL !== $this->isHreflangSitemap ? $this->isHreflangSitemap : self::isMultilingualSitemap();
}