public function handleGetPageDetails(GetPageDetailsEvent $event)
    {
        /** @var PageModel $pageModelAdapter */
        $pageModelAdapter = $this->framework->getAdapter(PageModel::class);

        $page = $pageModelAdapter->findWithDetails($event->getPageId());

        if ($page) {
            $event->setPageDetails($page->row());
        }
    }
public function handleGetPageDetails(GetPageDetailsEvent $event)
    {
        /** @var PageModel $pageModelAdapter */
        $pageModelAdapter = $this->framework->getAdapter(PageModel::class);

        $page = $pageModelAdapter->findWithDetails($event->getPageId());

        if ($page) {
            $event->setPageDetails($page->row());
        }
    }
public function handleGetPageDetails ( GetPageDetailsEvent $ event ) { /** @var PageModel $pageModelAdapter */ $ pageModelAdapter = $ this -> framework -> getAdapter ( PageModel :: class ) ; $ page = $ pageModelAdapter -> findWithDetails ( $ event -> getPageId ( ) ) ; if ( $ page ) { $ event -> setPageDetails ( $ page -> row ( ) ) ; } }
Collect details for a page.

@param GetPageDetailsEvent $event The event.

@return void
Collect details for a page .