Skip to content

Instantly share code, notes, and snippets.

@dchatry
Created March 16, 2018 14:46
Show Gist options
  • Select an option

  • Save dchatry/676b98087df5296425c81630d12bb45f to your computer and use it in GitHub Desktop.

Select an option

Save dchatry/676b98087df5296425c81630d12bb45f to your computer and use it in GitHub Desktop.
[Drupal 8] Sync CER References
# To be executed in a script or directly in Devel PHP console
$nids = \Drupal::entityQuery('node')->condition('type','YOUR_NODE_TYPE')->execute();
$nodes = \Drupal\node\Entity\Node::loadMultiple($nids);
foreach($nodes as $node) {
cer_sync_corresponding_references($node);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment