if (!
isset($seoUrls[$category['id'
]])) { continue;
} $lastMod =
$category['updated_at'
] ?:
$category['created_at'
];
$lastMod =
(new \
DateTime($lastMod))->
format(Defaults::STORAGE_DATE_TIME_FORMAT
);
$newUrl =
clone $url;
if (isset($seoUrls[$category['id'
]])) { $newUrl->
setLoc($seoUrls[$category['id'
]]['seo_path_info'
]);
} else { $newUrl->
setLoc($this->router->
generate('frontend.navigation.page',
['navigationId' =>
$category->
getId()], UrlGeneratorInterface::ABSOLUTE_PATH
));
} $newUrl->
setLastmod(new \
DateTime($lastMod));
$newUrl->
setChangefreq(self::CHANGE_FREQ
);
$newUrl->
setResource(CategoryEntity::
class);
$newUrl->
setIdentifier($category['id'
]);
$urls[] =
$newUrl;
}