I need to slightly modify some URLs that are in a "Link" field on a custom entity type.
mytheme_preprocess_myentity I've found that field with
$variables['elements']['field_my_url'] I get this output in Kint
I've tried using a number of methods on the
#url object but I don't think I'm doing it correctly... I'm just confused on how to modify it at this point.
How can I change the external URL to which this particular field is pointing?