protected function getPageOverlayRecordIfParentIsAccessible($recordUid, $parentWhereClause)
    {
        $overlayRecord = (array)BackendUtility::getRecord('pages', $recordUid, '*');
        $overlayParentId = $overlayRecord['l10n_parent'];

        $pageRecord = (array)BackendUtility::getRecord('pages', $overlayParentId, '*', $parentWhereClause);

        if (empty($pageRecord)) {
            return [];
        }

        return $overlayRecord;
    }
protected function getPageOverlayRecordIfParentIsAccessible($recordUid, $parentWhereClause)
    {
        $overlayRecord = (array)BackendUtility::getRecord('pages', $recordUid, '*');
        $overlayParentId = $overlayRecord['l10n_parent'];

        $pageRecord = (array)BackendUtility::getRecord('pages', $overlayParentId, '*', $parentWhereClause);

        if (empty($pageRecord)) {
            return [];
        }

        return $overlayRecord;
    }
protected function getPageOverlayRecordIfParentIsAccessible ( $ recordUid , $ parentWhereClause ) { $ overlayRecord = ( array ) BackendUtility :: getRecord ( 'pages' , $ recordUid , '*' ) ; $ overlayParentId = $ overlayRecord [ 'l10n_parent' ] ; $ pageRecord = ( array ) BackendUtility :: getRecord ( 'pages' , $ overlayParentId , '*' , $ parentWhereClause ) ; if ( empty ( $ pageRecord ) ) { return [ ] ; } return $ overlayRecord ; }
This method retrieves the pages_language_overlay record when the parent record is accessible
through the recordWhereClause

@param int $recordUid
@param string $parentWhereClause
@return array
This method retrieves the pages_language_overlay record when the parent record is accessible through the recordWhereClause