public function getIndexQueueConfigurationNamesByTableName($tableName, $defaultIfEmpty = [])
    {
        $path = 'plugin.tx_solr.index.queue.';
        $configuration = $this->getObjectByPathOrDefault($path, []);
        $possibleConfigurations = [];

        foreach ($configuration as $configurationName => $indexingEnabled) {
            $isObject = substr($configurationName, -1) === '.';
            if ($isObject || !$indexingEnabled) {
                continue;
            }

            // when the configuration name equals the tableName we have a fallback
            $hasTableNameAsConfigurationName = $configurationName == $tableName;
            $hasTableAssignedInQueueConfiguration = isset($configuration[$configurationName . '.']['table']) &&
                                                    $configuration[$configurationName . '.']['table'] == $tableName;
            if ($hasTableNameAsConfigurationName || $hasTableAssignedInQueueConfiguration) {
                $possibleConfigurations[] = $configurationName;
            }
        }

        return count($possibleConfigurations) > 0 ? $possibleConfigurations : $defaultIfEmpty;
    }
public function getIndexQueueConfigurationNamesByTableName($tableName, $defaultIfEmpty = [])
    {
        $path = 'plugin.tx_solr.index.queue.';
        $configuration = $this->getObjectByPathOrDefault($path, []);
        $possibleConfigurations = [];

        foreach ($configuration as $configurationName => $indexingEnabled) {
            $isObject = substr($configurationName, -1) === '.';
            if ($isObject || !$indexingEnabled) {
                continue;
            }

            // when the configuration name equals the tableName we have a fallback
            $hasTableNameAsConfigurationName = $configurationName == $tableName;
            $hasTableAssignedInQueueConfiguration = isset($configuration[$configurationName . '.']['table']) &&
                                                    $configuration[$configurationName . '.']['table'] == $tableName;
            if ($hasTableNameAsConfigurationName || $hasTableAssignedInQueueConfiguration) {
                $possibleConfigurations[] = $configurationName;
            }
        }

        return count($possibleConfigurations) > 0 ? $possibleConfigurations : $defaultIfEmpty;
    }
public function getIndexQueueConfigurationNamesByTableName ( $ tableName , $ defaultIfEmpty = [ ] ) { $ path = 'plugin.tx_solr.index.queue.' ; $ configuration = $ this -> getObjectByPathOrDefault ( $ path , [ ] ) ; $ possibleConfigurations = [ ] ; foreach ( $ configuration as $ configurationName => $ indexingEnabled ) { $ isObject = substr ( $ configurationName , - 1 ) === '.' ; if ( $ isObject || ! $ indexingEnabled ) { continue ; } // when the configuration name equals the tableName we have a fallback $ hasTableNameAsConfigurationName = $ configurationName == $ tableName ; $ hasTableAssignedInQueueConfiguration = isset ( $ configuration [ $ configurationName . '.' ] [ 'table' ] ) && $ configuration [ $ configurationName . '.' ] [ 'table' ] == $ tableName ; if ( $ hasTableNameAsConfigurationName || $ hasTableAssignedInQueueConfiguration ) { $ possibleConfigurations [ ] = $ configurationName ; } } return count ( $ possibleConfigurations ) > 0 ? $ possibleConfigurations : $ defaultIfEmpty ; }
This method can be used to retrieve all index queue configuration names, where
a certain table is used. It can be configured with the property "table" or is using the configuration
key a fallback for the table name.

plugin.tx_solr.index.queue.<configurationName>.

@param string $tableName
@param array $defaultIfEmpty
@return array
This method can be used to retrieve all index queue configuration names where a certain table is used . It can be configured with the property table or is using the configuration key a fallback for the table name .