public function getOverlay($tableName, $record)
    {
        if ($tableName === 'pages') {
            return $this->tsfe->sys_page->getPageOverlay($record, $this->tsfe->sys_language_uid);
        }

        return $this->tsfe->sys_page->getRecordOverlay($tableName, $record, $this->tsfe->sys_language_uid);
    }
public function getOverlay($tableName, $record)
    {
        if ($tableName === 'pages') {
            return $this->tsfe->sys_page->getPageOverlay($record, $this->tsfe->sys_language_uid);
        }

        return $this->tsfe->sys_page->getRecordOverlay($tableName, $record, $this->tsfe->sys_language_uid);
    }
public function getOverlay ( $ tableName , $ record ) { if ( $ tableName === 'pages' ) { return $ this -> tsfe -> sys_page -> getPageOverlay ( $ record , $ this -> tsfe -> sys_language_uid ) ; } return $ this -> tsfe -> sys_page -> getRecordOverlay ( $ tableName , $ record , $ this -> tsfe -> sys_language_uid ) ; }
Return the translated record

@param string $tableName
@param array $record
@return array
Return the translated record