drupal 8 entity type manager loadbyproperties not equal 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
]);