Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
./drs php-eval '$query = \Drupal::entityTypeManager()->getStorage("node")->getQuery();
$query->condition("type", ["wt_room", "wt_package"], "IN");
$nodeIds = $query->execute();
$hotelEntities = \Drupal::entityTypeManager()->getStorage("node")->loadMultiple($nodeIds);
foreach ($hotelEntities as $hotelEntity) {
$hotelEntity->set("remote_datasource", "KOGNITIV");
$hotelEntity->save();
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment