MCPcopy Create free account
hub / github.com/corestoreio/pkg / StoreIDbyCode

Method StoreIDbyCode

store/service.go:46–46  ·  view source on GitHub ↗

StoreIDbyCode returns, depending on the runMode, for a storeCode its active store ID and its website ID. An empty runMode hash falls back to select the default website, with its default group, and the slice of default stores. A not-found error behaviour gets returned if the code cannot be found. If

(runMode scope.TypeID, storeCode string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

StoreIDbyCodeMethod · 0.65
TestNewServiceRPCFunction · 0.65
TestFindFunction · 0.65

Calls

no outgoing calls

Tested by 3

TestNewServiceRPCFunction · 0.52
TestFindFunction · 0.52