MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / getVariation

Method getVariation

lib/theme-config.js:123–126  ·  view source on GitHub ↗

* Get variation object by index * @returns {Object}

(variationIndex)

Source from the content-addressed store, hash-verified

121 * @returns {Object}
122 */
123 async getVariation(variationIndex) {
124 const config = await this.getConfig();
125 return this._getVariation(config, variationIndex);
126 }
127
128 /**
129 * Variation Name Setter

Callers

nothing calls this directly

Calls 2

getConfigMethod · 0.95
_getVariationMethod · 0.95

Tested by

no test coverage detected