Setup/Install/DataMigrationHelper.php
private function saveAllProductTypesAsString()
    {
        $types = $this->typeFactory
            ->create()
            ->toOptionArray();
        $options = [];
        foreach ($types as $type) {
            $options[] = $type['value'];
        }
        $typeString = implode(',', $options);
        $this->config->saveConfig(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_SYNC_CATALOG_TYPE,
            $typeString,
            'website',
            '0'
        );
    }
private function saveAllProductTypesAsString()
    {
        $types = $this->typeFactory
            ->create()
            ->toOptionArray();
        $options = [];
        foreach ($types as $type) {
            $options[] = $type['value'];
        }
        $typeString = implode(',', $options);
        $this->config->saveConfig(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_SYNC_CATALOG_TYPE,
            $typeString,
            'website',
            '0'
        );
    }
private function saveAllProductTypesAsString ( ) { $ types = $ this -> typeFactory -> create ( ) -> toOptionArray ( ) ; $ options = [ ] ; foreach ( $ types as $ type ) { $ options [ ] = $ type [ 'value' ] ; } $ typeString = implode ( ',' , $ options ) ; $ this -> config -> saveConfig ( \ Dotdigitalgroup \ Email \ Helper \ Config :: XML_PATH_CONNECTOR_SYNC_CATALOG_TYPE , $ typeString , 'website' , '0' ) ; }
Get all product types and save in config
Get all product types and save in config