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