drupal entitytypemanager getstorage loadbyproperties condition code example
Example: drupal 8 get entity load by properties
$node = \Drupal::entityTypeManager()
->getStorage('node')
->loadByProperties([
'title' => $title
]);
$node = \Drupal::entityTypeManager()
->getStorage('node')
->loadByProperties([
'title' => $title
]);