Created
March 16, 2018 14:46
-
-
Save dchatry/676b98087df5296425c81630d12bb45f to your computer and use it in GitHub Desktop.
[Drupal 8] Sync CER References
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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