protected function getIsGarbageRecord($table, $record):bool
    {
        return $this->tcaService->isHidden($table, $record) ||
                $this->isInvisibleByStartOrEndtime($table, $record) ||
                $this->hasFrontendGroupsRemoved($table, $record) ||
                ($table === 'pages' && $this->isPageExcludedFromSearch($record)) ||
                ($table === 'pages' && !$this->isIndexablePageType($record));
    }
protected function getIsGarbageRecord($table, $record):bool
    {
        return $this->tcaService->isHidden($table, $record) ||
                $this->isInvisibleByStartOrEndtime($table, $record) ||
                $this->hasFrontendGroupsRemoved($table, $record) ||
                ($table === 'pages' && $this->isPageExcludedFromSearch($record)) ||
                ($table === 'pages' && !$this->isIndexablePageType($record));
    }
protected function getIsGarbageRecord ( $ table , $ record ) : bool { return $ this -> tcaService -> isHidden ( $ table , $ record ) || $ this -> isInvisibleByStartOrEndtime ( $ table , $ record ) || $ this -> hasFrontendGroupsRemoved ( $ table , $ record ) || ( $ table === 'pages' && $ this -> isPageExcludedFromSearch ( $ record ) ) || ( $ table === 'pages' && ! $ this -> isIndexablePageType ( $ record ) ) ; }
Determines if a record is garbage and can be deleted.

@param string $table
@param array $record
@return bool
Determines if a record is garbage and can be deleted .