public function resolve($scopeType, $scopeCode)
    {
        if (isset($this->resolvedScopeCodes[$scopeType][$scopeCode])) {
            return $this->resolvedScopeCodes[$scopeType][$scopeCode];
        }

        $resolverScopeCode = $scopeCode;

        if (($scopeCode === null || is_numeric($scopeCode))
            && $scopeType !== ScopeConfigInterface::SCOPE_TYPE_DEFAULT
        ) {
            $scopeResolver     = $this->scopeResolverPool->get($scopeType);
            $resolverScopeCode = $scopeResolver->getScope($scopeCode);
        }

        if ($resolverScopeCode instanceof \Magento\Framework\App\ScopeInterface) {
            $resolverScopeCode = $resolverScopeCode->getCode();
        }

        $this->resolvedScopeCodes[$scopeType][$scopeCode] = $resolverScopeCode;

        return $resolverScopeCode;
    }
public function resolve($scopeType, $scopeCode)
    {
        if (isset($this->resolvedScopeCodes[$scopeType][$scopeCode])) {
            return $this->resolvedScopeCodes[$scopeType][$scopeCode];
        }

        $resolverScopeCode = $scopeCode;

        if (($scopeCode === null || is_numeric($scopeCode))
            && $scopeType !== ScopeConfigInterface::SCOPE_TYPE_DEFAULT
        ) {
            $scopeResolver     = $this->scopeResolverPool->get($scopeType);
            $resolverScopeCode = $scopeResolver->getScope($scopeCode);
        }

        if ($resolverScopeCode instanceof \Magento\Framework\App\ScopeInterface) {
            $resolverScopeCode = $resolverScopeCode->getCode();
        }

        $this->resolvedScopeCodes[$scopeType][$scopeCode] = $resolverScopeCode;

        return $resolverScopeCode;
    }
public function resolve ( $ scopeType , $ scopeCode ) { if ( isset ( $ this -> resolvedScopeCodes [ $ scopeType ] [ $ scopeCode ] ) ) { return $ this -> resolvedScopeCodes [ $ scopeType ] [ $ scopeCode ] ; } $ resolverScopeCode = $ scopeCode ; if ( ( $ scopeCode === null || is_numeric ( $ scopeCode ) ) && $ scopeType !== ScopeConfigInterface :: SCOPE_TYPE_DEFAULT ) { $ scopeResolver = $ this -> scopeResolverPool -> get ( $ scopeType ) ; $ resolverScopeCode = $ scopeResolver -> getScope ( $ scopeCode ) ; } if ( $ resolverScopeCode instanceof \ Magento \ Framework \ App \ ScopeInterface ) { $ resolverScopeCode = $ resolverScopeCode -> getCode ( ) ; } $ this -> resolvedScopeCodes [ $ scopeType ] [ $ scopeCode ] = $ resolverScopeCode ; return $ resolverScopeCode ; }
Resolve scope code

@param string      $scopeType Scope Type
@param string|null $scopeCode Scope code

@return string
Resolve scope code