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
c27a3f89
Commit
c27a3f89
authored
Dec 27, 2017
by
Pawel G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show lastmod for menu entries that point to an entity
parent
262c53f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/Plugin/simple_sitemap/UrlGenerator/EntityMenuLinkContentUrlGenerator.php
...itemap/UrlGenerator/EntityMenuLinkContentUrlGenerator.php
+3
-1
No files found.
src/Plugin/simple_sitemap/UrlGenerator/EntityMenuLinkContentUrlGenerator.php
View file @
c27a3f89
...
...
@@ -154,7 +154,9 @@ class EntityMenuLinkContentUrlGenerator extends UrlGeneratorBase {
$path_data
=
[
'url'
=>
$url_object
,
'lastmod'
=>
NULL
,
'lastmod'
=>
!
empty
(
$entity
)
&&
method_exists
(
$entity
,
'getChangedTime'
)
?
date_iso8601
(
$entity
->
getChangedTime
())
:
NULL
,
'priority'
=>
isset
(
$entity_settings
[
'priority'
])
?
$entity_settings
[
'priority'
]
:
NULL
,
'changefreq'
=>
!
empty
(
$entity_settings
[
'changefreq'
])
?
$entity_settings
[
'changefreq'
]
:
NULL
,
'images'
=>
!
empty
(
$entity_settings
[
'include_images'
])
&&
!
empty
(
$entity
)
...
...
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