i have created Event entity, and I have custom page.
I want to load ALL Entity rows and then use it in my template.
This is the way everyone is prsenting, but i don't know how can i get NID value
$events = \Drupal::entityTypeManager()->getStorage('event')->load($nid);
Using Symfony i could do this like:
$events = $this->getDoctrine()->getRepository(Event::class)->findAll();