protected function getRecordWithFieldRelevantForGarbageCollection($table, $uid):array
    {
        $garbageCollectionRelevantFields = $this->tcaService->getVisibilityAffectingFieldsByTable($table);
        $record = (array)BackendUtility::getRecord($table, $uid, $garbageCollectionRelevantFields, '', false);
        return $record;
    }
protected function getRecordWithFieldRelevantForGarbageCollection($table, $uid):array
    {
        $garbageCollectionRelevantFields = $this->tcaService->getVisibilityAffectingFieldsByTable($table);
        $record = (array)BackendUtility::getRecord($table, $uid, $garbageCollectionRelevantFields, '', false);
        return $record;
    }
protected function getRecordWithFieldRelevantForGarbageCollection ( $ table , $ uid ) : array { $ garbageCollectionRelevantFields = $ this -> tcaService -> getVisibilityAffectingFieldsByTable ( $ table ) ; $ record = ( array ) BackendUtility :: getRecord ( $ table , $ uid , $ garbageCollectionRelevantFields , '' , false ) ; return $ record ; }
Returns a record with all visibility affecting fields.

@param string $table
@param int $uid
@return array
Returns a record with all visibility affecting fields .