Commit ec1a9728 authored by hanoii's avatar hanoii Committed by RenatoG

Issue #3002843 by hanoii, RenatoG: Do not use lastmod on menu links

parent a2daadf8
...@@ -87,10 +87,6 @@ class XmlSitemapLinkStorage implements XmlSitemapLinkStorageInterface { ...@@ -87,10 +87,6 @@ class XmlSitemapLinkStorage implements XmlSitemapLinkStorageInterface {
'changefreq' => isset($settings['changefreq']) ? $settings['changefreq'] : 0, 'changefreq' => isset($settings['changefreq']) ? $settings['changefreq'] : 0,
]; ];
if ($entity instanceof EntityChangedInterface) {
$entity->xmlsitemap['lastmod'] = $entity->getChangedTime();
}
// The following values must always be checked because they are volatile. // The following values must always be checked because they are volatile.
try { try {
$loc = ($entity->id() !== NULL && $entity->hasLinkTemplate('canonical')) ? '/' . $entity->toUrl()->getInternalPath() : ''; $loc = ($entity->id() !== NULL && $entity->hasLinkTemplate('canonical')) ? '/' . $entity->toUrl()->getInternalPath() : '';
......
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