Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using
\Drupal::service('simple_sitemap.generator')->setEntityInstanceSettings($type, $id, ['index' => FALSE]);
as documented and then visiting the entity form, the setting is not reflected.
Comments
Comment #3
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedThis is fixed now, make sure to use the boolean values for the
index
andinclude_images
settings as the documentation says.So
['index' => TRUE]
instead of.['index' => 1]
Do not forget to run /update.php.