public function getIntegrationSetting($key = '', $default = '')
    {
        if (null === $this->integrationSettings) {
            $this->integrationSettings = [];
            $object                    = $this->integrationHelper->getIntegrationObject('Source');
            if ($object) {
                $objectSettings = $object->getIntegrationSettings();
                if ($objectSettings) {
                    $this->integrationSettings = $objectSettings->getFeatureSettings();
                }
            }
        }
        if ($key) {
            if (isset($this->integrationSettings[$key])) {
                return $this->integrationSettings[$key];
            } else {
                return $default;
            }
        } else {
            return $this->integrationSettings;
        }
    }
public function getIntegrationSetting($key = '', $default = '')
    {
        if (null === $this->integrationSettings) {
            $this->integrationSettings = [];
            $object                    = $this->integrationHelper->getIntegrationObject('Source');
            if ($object) {
                $objectSettings = $object->getIntegrationSettings();
                if ($objectSettings) {
                    $this->integrationSettings = $objectSettings->getFeatureSettings();
                }
            }
        }
        if ($key) {
            if (isset($this->integrationSettings[$key])) {
                return $this->integrationSettings[$key];
            } else {
                return $default;
            }
        } else {
            return $this->integrationSettings;
        }
    }
public function getIntegrationSetting ( $ key = '' , $ default = '' ) { if ( null === $ this -> integrationSettings ) { $ this -> integrationSettings = [ ] ; $ object = $ this -> integrationHelper -> getIntegrationObject ( 'Source' ) ; if ( $ object ) { $ objectSettings = $ object -> getIntegrationSettings ( ) ; if ( $ objectSettings ) { $ this -> integrationSettings = $ objectSettings -> getFeatureSettings ( ) ; } } } if ( $ key ) { if ( isset ( $ this -> integrationSettings [ $ key ] ) ) { return $ this -> integrationSettings [ $ key ] ; } else { return $ default ; } } else { return $ this -> integrationSettings ; } }
Get all global Source integration settings, or a single feature setting.

@param string $key
@param string $default

@return array|mixed|string
Get all global Source integration settings or a single feature setting .