protected function getRecordIfIndexConfigurationIsValid($recordTable, $recordUid, $indexingConfigurationName, TypoScriptConfiguration $solrConfiguration)
    {
        if (!$this->isValidTableForIndexConfigurationName($recordTable, $indexingConfigurationName, $solrConfiguration)) {
            return [];
        }

        $recordWhereClause = $solrConfiguration->getIndexQueueAdditionalWhereClauseByConfigurationName($indexingConfigurationName);

        if ($recordTable === 'pages_language_overlay') {
            return $this->getPageOverlayRecordIfParentIsAccessible($recordUid, $recordWhereClause);
        }

        $row = $this->getRecordForIndexConfigurationIsValid($recordTable, $recordUid, $recordWhereClause);

        return $row;
    }
protected function getRecordIfIndexConfigurationIsValid($recordTable, $recordUid, $indexingConfigurationName, TypoScriptConfiguration $solrConfiguration)
    {
        if (!$this->isValidTableForIndexConfigurationName($recordTable, $indexingConfigurationName, $solrConfiguration)) {
            return [];
        }

        $recordWhereClause = $solrConfiguration->getIndexQueueAdditionalWhereClauseByConfigurationName($indexingConfigurationName);

        if ($recordTable === 'pages_language_overlay') {
            return $this->getPageOverlayRecordIfParentIsAccessible($recordUid, $recordWhereClause);
        }

        $row = $this->getRecordForIndexConfigurationIsValid($recordTable, $recordUid, $recordWhereClause);

        return $row;
    }
protected function getRecordIfIndexConfigurationIsValid ( $ recordTable , $ recordUid , $ indexingConfigurationName , TypoScriptConfiguration $ solrConfiguration ) { if ( ! $ this -> isValidTableForIndexConfigurationName ( $ recordTable , $ indexingConfigurationName , $ solrConfiguration ) ) { return [ ] ; } $ recordWhereClause = $ solrConfiguration -> getIndexQueueAdditionalWhereClauseByConfigurationName ( $ indexingConfigurationName ) ; if ( $ recordTable === 'pages_language_overlay' ) { return $ this -> getPageOverlayRecordIfParentIsAccessible ( $ recordUid , $ recordWhereClause ) ; } $ row = $ this -> getRecordForIndexConfigurationIsValid ( $ recordTable , $ recordUid , $ recordWhereClause ) ; return $ row ; }
This method return the record array if the table is valid for this indexingConfiguration.
Otherwise an empty array will be returned.

@param string $recordTable
@param integer $recordUid
@param string $indexingConfigurationName
@param TypoScriptConfiguration $solrConfiguration
@return array
This method return the record array if the table is valid for this indexingConfiguration . Otherwise an empty array will be returned .