Sometimes we need to write some code to exclude nodes from the sitemap.xml based on custom conditions, The XML sitemap module provides a hook to do this function mymodule_xmlsitemap_link_alter(array &$link, array $context) { if (own_condition) { ...
sreenidrupaldev.hashnode.dev1 min readNo responses yet.