Drupal 10 - Load Node by Properties
">
Drupal 10 - Load Node by Properties
Load node by properties:
$node = \Drupal::entityTypeManager()
->getStorage('node')
->loadByProperties([
'field_something' => $some_data,
'field_other_thing' => $other_data,
]);