drupal 8 load current entity 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
]);