Event List block: how to get linked page ID

Hi,

I’m trying to use calendar and view a list of events calendar events with Event List block in a way that the block would fetch attributes from the page that is linked to the event.

Having difficult time trying to get a page ID of that link in Event List block, right now only thing I can figure out is how to get a link to the page:

$linkFormatter->getEventFrontendViewLink($event);

But I cant seem to figure out how to get an ID of that page, so I can fetch attributes from that page.

Cheers, Petro

I believe if you have the event object you can just do

$event->getPageObject();

Thank you so very much, this solved it!