protected static function buildConfigurationArray($pageId, $path, $initializeTsfe, $language)
    {
        if ($initializeTsfe) {
            self::initializeTsfe($pageId, $language);
            $configurationToUse = self::getConfigurationFromInitializedTSFE($path);
        } else {
            $configurationToUse = self::getConfigurationFromExistingTSFE($pageId, $path, $language);
        }

        return is_array($configurationToUse) ? $configurationToUse : [];
    }
protected static function buildConfigurationArray($pageId, $path, $initializeTsfe, $language)
    {
        if ($initializeTsfe) {
            self::initializeTsfe($pageId, $language);
            $configurationToUse = self::getConfigurationFromInitializedTSFE($path);
        } else {
            $configurationToUse = self::getConfigurationFromExistingTSFE($pageId, $path, $language);
        }

        return is_array($configurationToUse) ? $configurationToUse : [];
    }
protected static function buildConfigurationArray ( $ pageId , $ path , $ initializeTsfe , $ language ) { if ( $ initializeTsfe ) { self :: initializeTsfe ( $ pageId , $ language ) ; $ configurationToUse = self :: getConfigurationFromInitializedTSFE ( $ path ) ; } else { $ configurationToUse = self :: getConfigurationFromExistingTSFE ( $ pageId , $ path , $ language ) ; } return is_array ( $ configurationToUse ) ? $ configurationToUse : [ ] ; }
Initializes a TSFE, if required and builds an configuration array, containing the solr configuration.

@param integer $pageId
@param string $path
@param boolean $initializeTsfe
@param integer $language
@return array
Initializes a TSFE if required and builds an configuration array containing the solr configuration .