protected function getDefaultConfigurationLibrary($magentoEdition, $entityTypeCode)
    {

        // query whether or not, a default configuration file for the passed entity type is available
        if (isset($this->defaultConfigurations[$edition = strtolower($magentoEdition)])) {
            if (isset($this->defaultConfigurations[$edition][$entityTypeCode])) {
                return $this->defaultConfigurations[$edition][$entityTypeCode];
            }

            // throw an exception, if the passed entity type is not supported
            throw new \Exception(
                sprintf(
                    'Entity Type Code \'%s\' not supported by entity type code \'%s\' (MUST be one of catalog_product, catalog_category or eav_attribute)',
                    $edition,
                    $entityTypeCode
                )
            );
        }

        // throw an exception, if the passed edition is not supported
        throw new \Exception(
            sprintf(
                'Default configuration for Magento \'%s\' not supported (MUST be one of CE or EE)',
                $magentoEdition
            )
        );
    }
protected function getDefaultConfigurationLibrary($magentoEdition, $entityTypeCode)
    {

        // query whether or not, a default configuration file for the passed entity type is available
        if (isset($this->defaultConfigurations[$edition = strtolower($magentoEdition)])) {
            if (isset($this->defaultConfigurations[$edition][$entityTypeCode])) {
                return $this->defaultConfigurations[$edition][$entityTypeCode];
            }

            // throw an exception, if the passed entity type is not supported
            throw new \Exception(
                sprintf(
                    'Entity Type Code \'%s\' not supported by entity type code \'%s\' (MUST be one of catalog_product, catalog_category or eav_attribute)',
                    $edition,
                    $entityTypeCode
                )
            );
        }

        // throw an exception, if the passed edition is not supported
        throw new \Exception(
            sprintf(
                'Default configuration for Magento \'%s\' not supported (MUST be one of CE or EE)',
                $magentoEdition
            )
        );
    }
protected function getDefaultConfigurationLibrary ( $ magentoEdition , $ entityTypeCode ) { // query whether or not, a default configuration file for the passed entity type is available if ( isset ( $ this -> defaultConfigurations [ $ edition = strtolower ( $ magentoEdition ) ] ) ) { if ( isset ( $ this -> defaultConfigurations [ $ edition ] [ $ entityTypeCode ] ) ) { return $ this -> defaultConfigurations [ $ edition ] [ $ entityTypeCode ] ; } // throw an exception, if the passed entity type is not supported throw new \ Exception ( sprintf ( 'Entity Type Code \'%s\' not supported by entity type code \'%s\' (MUST be one of catalog_product, catalog_category or eav_attribute)' , $ edition , $ entityTypeCode ) ) ; } // throw an exception, if the passed edition is not supported throw new \ Exception ( sprintf ( 'Default configuration for Magento \'%s\' not supported (MUST be one of CE or EE)' , $ magentoEdition ) ) ; }
Return's the Magento Edition and entity type's specific default library that contains
the configuration file.

@param string $magentoEdition The Magento Edition to return the default library for
@param string $entityTypeCode The entity type code to return the default library file for

@return string The name of the library that contains the default configuration file for the passed Magento Edition and entity type code
@throws \Exception Is thrown, if no default configuration for the passed entity type code is available
Return s the Magento Edition and entity type s specific default library that contains the configuration file .