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

        $queryBuilder
            ->select('uid')
            ->from($this->table)
            ->add('where',
                $queryBuilder->expr()->eq('content_from_pid', $queryBuilder->createNamedParameter($pageId, \PDO::PARAM_INT))
            );

        $this->addDefaultLanguageUidConstraint($queryBuilder);

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

        $queryBuilder
            ->select('uid')
            ->from($this->table)
            ->add('where',
                $queryBuilder->expr()->eq('content_from_pid', $queryBuilder->createNamedParameter($pageId, \PDO::PARAM_INT))
            );

        $this->addDefaultLanguageUidConstraint($queryBuilder);

        return $queryBuilder->execute()->fetchAll();
    }
public function findPageUidsWithContentsFromPid ( int $ pageId ) : array { $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ queryBuilder -> getRestrictions ( ) -> removeAll ( ) ; $ queryBuilder -> getRestrictions ( ) -> add ( GeneralUtility :: makeInstance ( DeletedRestriction :: class ) ) ; $ queryBuilder -> select ( 'uid' ) -> from ( $ this -> table ) -> add ( 'where' , $ queryBuilder -> expr ( ) -> eq ( 'content_from_pid' , $ queryBuilder -> createNamedParameter ( $ pageId , \ PDO :: PARAM_INT ) ) ) ; $ this -> addDefaultLanguageUidConstraint ( $ queryBuilder ) ; return $ queryBuilder -> execute ( ) -> fetchAll ( ) ; }
Finds Pages, which are showing content from the page currently being updated.

@param int $pageId UID of the page currently being updated
@return array with page Uids from pages, which are showing contents from given Page Id
Finds Pages which are showing content from the page currently being updated .