protected function getLocalRecordUidFromOverlay($localTableName, $originalRecord)
    {
        $overlayRecord = $this->getOverlay($localTableName, $originalRecord);

        // when there is a _PAGES_OVERLAY_UID | _LOCALIZED_UID in the overlay, we return it
        if ($localTableName === 'pages' && isset($overlayRecord['_PAGES_OVERLAY_UID'])) {
            return (int)$overlayRecord['_PAGES_OVERLAY_UID'];
        } elseif (isset($overlayRecord['_LOCALIZED_UID'])) {
            return (int)$overlayRecord['_LOCALIZED_UID'];
        }

        return 0;
    }
protected function getLocalRecordUidFromOverlay($localTableName, $originalRecord)
    {
        $overlayRecord = $this->getOverlay($localTableName, $originalRecord);

        // when there is a _PAGES_OVERLAY_UID | _LOCALIZED_UID in the overlay, we return it
        if ($localTableName === 'pages' && isset($overlayRecord['_PAGES_OVERLAY_UID'])) {
            return (int)$overlayRecord['_PAGES_OVERLAY_UID'];
        } elseif (isset($overlayRecord['_LOCALIZED_UID'])) {
            return (int)$overlayRecord['_LOCALIZED_UID'];
        }

        return 0;
    }
protected function getLocalRecordUidFromOverlay ( $ localTableName , $ originalRecord ) { $ overlayRecord = $ this -> getOverlay ( $ localTableName , $ originalRecord ) ; // when there is a _PAGES_OVERLAY_UID | _LOCALIZED_UID in the overlay, we return it if ( $ localTableName === 'pages' && isset ( $ overlayRecord [ '_PAGES_OVERLAY_UID' ] ) ) { return ( int ) $ overlayRecord [ '_PAGES_OVERLAY_UID' ] ; } elseif ( isset ( $ overlayRecord [ '_LOCALIZED_UID' ] ) ) { return ( int ) $ overlayRecord [ '_LOCALIZED_UID' ] ; } return 0 ; }
This method retrieves the _PAGES_OVERLAY_UID or _LOCALIZED_UID from the localized record.

@param string $localTableName
@param array $originalRecord
@return int
This method retrieves the _PAGES_OVERLAY_UID or _LOCALIZED_UID from the localized record .