Commit 0dc11015 authored by gbyte.co's avatar gbyte.co

Remove unused imports

parent c119a9cf
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
namespace Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator; namespace Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Database\Connection;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Component\Datetime\Time;
/** /**
* Class DefaultSitemapGenerator * Class DefaultSitemapGenerator
...@@ -174,13 +170,8 @@ class DefaultSitemapGenerator extends SitemapGeneratorBase { ...@@ -174,13 +170,8 @@ class DefaultSitemapGenerator extends SitemapGeneratorBase {
* @return bool * @return bool
*/ */
protected function isHreflangSitemap() { protected function isHreflangSitemap() {
if (NULL === $this->isHreflangSitemap) { return NULL !== $this->isHreflangSitemap
$this->isHreflangSitemap = count( ? $this->isHreflangSitemap
array_diff_key($this->languageManager->getLanguages(), : self::isMultilingualSitemap();
$this->settings['excluded_languages'])
) > 1;
}
return $this->isHreflangSitemap;
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment