private function getPageDetails($pageId)
    {
        if (empty($pageId)) {
            return array();
        }
        $event = new GetPageDetailsEvent($pageId);
        $this->getEventDispatcher()->dispatch(ContaoEvents::CONTROLLER_GET_PAGE_DETAILS, $event);

        return $event->getPageDetails();
    }