How to get custom entity data in custom page
This is the solution

$storage = Drupal::entityTypeManager()-&gt;getStorage('event');

$nids = Drupal::entityQuery('event')-&gt;execute();
//Load all nids
$events = $storage-&gt;loadMultiple($nids);
//You can also use
$events = $storage-&gt;loadMultiple();