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

gbyte.co created an issue. See original summary.

  • gbyte.co committed ad01174 on 8.x-3.x
    Issue #2968979 by gbyte.co: Setting values programmatically does not...
gbyte’s picture

Status: Active » Fixed

This is fixed now, make sure to use the boolean values for the index and include_images settings as the documentation says.
So ['index' => TRUE] instead of ['index' => 1].

Do not forget to run /update.php.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.