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.
Maybe I'm missing something, but I don't see why \Drupal\simple_sitemap\Form\FormHelper::processForm() needs to continue if no entity was found.
\Drupal\simple_sitemap\Form\FormHelper::negotiateSettings() does a lot of quite extensive processing, like a config entity query, but the supports call will then just check if NULL is an enabled entity type.
Comment | File | Size | Author |
---|---|---|---|
#2 | simple_sitemap-3162869-2.patch | 512 bytes | Berdir |
|
Comments
Comment #2
BerdirComment #4
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedThanks, as always a good find (how did you notice?). I altered your logic to still use supports(), but skipping the redundant code.