public function findTranslationOverlaysByPageId(int $pageId) : array
    {
        $queryBuilder = $this->getQueryBuilder();
        $queryBuilder->getRestrictions()->removeAll();
        $queryBuilder->getRestrictions()->add(GeneralUtility::makeInstance(DeletedRestriction::class));

        return $queryBuilder
            ->select('pid', 'l10n_parent', 'sys_language_uid')
            ->from('pages')
            ->add('where',
                $queryBuilder->expr()->eq('l10n_parent', $queryBuilder->createNamedParameter($pageId, \PDO::PARAM_INT))
                . BackendUtility::BEenableFields('pages')
            )->execute()->fetchAll();

    }
public function findTranslationOverlaysByPageId(int $pageId) : array
    {
        $queryBuilder = $this->getQueryBuilder();
        $queryBuilder->getRestrictions()->removeAll();
        $queryBuilder->getRestrictions()->add(GeneralUtility::makeInstance(DeletedRestriction::class));

        return $queryBuilder
            ->select('pid', 'l10n_parent', 'sys_language_uid')
            ->from('pages')
            ->add('where',
                $queryBuilder->expr()->eq('l10n_parent', $queryBuilder->createNamedParameter($pageId, \PDO::PARAM_INT))
                . BackendUtility::BEenableFields('pages')
            )->execute()->fetchAll();

    }
public function findTranslationOverlaysByPageId ( int $ pageId ) : array { $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ queryBuilder -> getRestrictions ( ) -> removeAll ( ) ; $ queryBuilder -> getRestrictions ( ) -> add ( GeneralUtility :: makeInstance ( DeletedRestriction :: class ) ) ; return $ queryBuilder -> select ( 'pid' , 'l10n_parent' , 'sys_language_uid' ) -> from ( 'pages' ) -> add ( 'where' , $ queryBuilder -> expr ( ) -> eq ( 'l10n_parent' , $ queryBuilder -> createNamedParameter ( $ pageId , \ PDO :: PARAM_INT ) ) . BackendUtility :: BEenableFields ( 'pages' ) ) -> execute ( ) -> fetchAll ( ) ; }
Finds translation overlays by given page Id.

@param int $pageId
@return array
Finds translation overlays by given page Id .