I noticed that even after disabling the verification from the field formatter, when saving an entity with a link field set to use the formatter, the saving will be very slow. It seems like the links are verified anyway, every time the field values are changed.
Could lines 291 and 465 of src/Plugin/Field/FieldFormatter/DecoratedLinksFormatter.php
be the problem?
It seems like the viewElements function (which I guess is always called automatically - I'm not a dev) will always call the decorate function with the true flag, which will in turn call the verify function right before returning the verified property of the link.
I guess setting a verified variable = $settings['verify'] before line 291 and changing the call to use that instead of TRUE would fix?
🙏🏻
A long term improvement, ie. not a bug fix but feature request, would instead allow setting verification jobs to run in the background.
Active
1.0
Code