You are here

protected function SitemapGenerator::isHreflangSitemap in Simple XML sitemap 8.2

Return value

bool

1 call to SitemapGenerator::isHreflangSitemap()
SitemapGenerator::generateSitemapChunk in src/SitemapGenerator.php
Generates and returns a sitemap chunk.

File

src/SitemapGenerator.php, line 108

Class

SitemapGenerator
Class SitemapGenerator @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

protected function isHreflangSitemap() {
  if (NULL === $this->isHreflangSitemap) {
    $this->isHreflangSitemap = count(array_diff_key($this->languageManager
      ->getLanguages(), $this->settings['excluded_languages'])) > 1;
  }
  return $this->isHreflangSitemap;
}