Commit cfd38951 authored by Dave Reid's avatar Dave Reid

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

This reverts commit ec1a9728.
parent 58f827a8
......@@ -87,6 +87,10 @@ class XmlSitemapLinkStorage implements XmlSitemapLinkStorageInterface {
'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.
try {
$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