How do I bulk update the alt and title tags of images
Rewriting the D7 code of How to bulk update image alt and title?

$nodes = \Drupal::entityTypeManager()
  -&gt;getStorage('node')
  -&gt;loadByProperties(['type' =&gt; 'article']);

foreach ($nodes as $node) {
  $node-&gt;field_image-&gt;alt = $alt;
  $node-&gt;field_image-&gt;title = $title;

  $node-&gt;save();
}