Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
simple_sitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
3
Merge Requests
3
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
simple_sitemap
Commits
0dc11015
Commit
0dc11015
authored
Mar 18, 2020
by
Pawel G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused imports
parent
c119a9cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
src/Plugin/simple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php
...mple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php
+3
-12
No files found.
src/Plugin/simple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php
View file @
0dc11015
...
...
@@ -3,10 +3,6 @@
namespace
Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator
;
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
...
...
@@ -174,13 +170,8 @@ class DefaultSitemapGenerator extends SitemapGeneratorBase {
* @return bool
*/
protected
function
isHreflangSitemap
()
{
if
(
NULL
===
$this
->
isHreflangSitemap
)
{
$this
->
isHreflangSitemap
=
count
(
array_diff_key
(
$this
->
languageManager
->
getLanguages
(),
$this
->
settings
[
'excluded_languages'
])
)
>
1
;
}
return
$this
->
isHreflangSitemap
;
return
NULL
!==
$this
->
isHreflangSitemap
?
$this
->
isHreflangSitemap
:
self
::
isMultilingualSitemap
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment