Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
43.49 KB
MD5: e53acf4359a3e890702e549d93b7a906
SHA-1: 37df8b8ce610717da349d3791214b4b006597060
SHA-256: b0a6fc16870ef92240250e8049576d221d51eca51bc618fe68817d43da47d9e5
Download zip
67.8 KB
MD5: 655dd8975dcb47acd753272c911d2d6e
SHA-1: fe1c1a636adfba8358399a5a1ccdf20685066573
SHA-256: 09c698cd00855c5a080bf58e66cb012408e95ed9aab7c8738f42d688e5b8b74b
Release notes
New features
- #2935372: base:/ menu items are not added to sitemap
- #2865973: links.menu definitions are not added to the sitemap
- #2931911: Allow overriding entity generator plugin for specific entity types
- Indexed bundles are now shown in an overview in sitemap entities settings page.
Other improvements
- #2932885: Hreflang sitemap generated for site with single language enabled
- #2938243: Convert tests to PHPUnit
API changes
No changes have been made that break backwards compatibility.
#2931911: Allow overriding entity generator plugin for specific entity types allows for easy overriding of the entity generator plugin for any entity type. This is being utilized for menu link generation now.
Please make sure to use the below simple_sitemap.generator service API instead of accessing the module's configuration storage directly.
API methods
- getSetting()
- saveSetting()
- getSitemap()
- generateSitemap()
- getGeneratedAgo()
- enableEntityType()
- disableEntityType()
- setBundleSettings()
- getBundleSettings()
- setEntityInstanceSettings()
- getEntityInstanceSettings()
- removeEntityInstanceSettings()
- bundleIsIndexed()
- entityTypeIsEnabled()
- addCustomLink()
- getCustomLinks()
- getCustomLink()
- removeCustomLink()
- removeCustomLinks()
Hooks
- hook_simple_sitemap_links_alter(&$links)
- hook_simple_sitemap_arbitrary_links_alter(&$arbitrary_links)
- hook_simple_sitemap_attributes_alter(&$attributes)
- hook_simple_sitemap_index_attributes_alter(&$index_attributes)
- hook_simple_sitemap_url_generators_alter(&$generators)
Read more about the API in the documentation.
Check out this resource for more details about the module and in-depth tutorials.