How to alter node links I have few existing node nodes which contains link &lt;a href="/some/link/here"&gt;Click here&lt;/a&gt;. Now I want to update all links to &lt;a href="/updated/some/link/here"&gt;. Is there any way to do this in Drupal8 via code.
You can load all those nodes by nid with

node_load_multiple(array $nids = NULL, $reset = FALSE);


Loop over all nodes and then find and replace by using

str_replace('original link', 'new link', $node-&gt;field_you_want_to_change);


And then saving the node using

$node-&gt;save()