Commit c27a3f89 authored by gbyte.co's avatar gbyte.co

Show lastmod for menu entries that point to an entity

parent 262c53f5
......@@ -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)
......
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