In function "Drupal\simplesitemap\LinkGenerators\EntityLinkGenerator::get_entity_links()", you cannot override the variable $links because it overrides processed content type previously.

Comments

victorcpereira created an issue. See original summary.

victorcpereira’s picture

Title: When selected more than one content type, just one content type show up on sitemap.xml. » When selected more than one content type, just one content type shows up on sitemap.xml.

  • gbyte.co committed fbd0310 on 8.x-1.x
    Issue #2608560 by victorcpereira: Not all bundles showed on the sitemap.
    
gbyte’s picture

Status: Active » Closed (fixed)

Hi, the problem was not overriding the variable, as it gets saved as object property. The problem was the += operator which apparently doesn't work with arrays as I would expect. Fixed in dev and stable release created.
Thanks for catching the bug!