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

Method setVariation

lib/theme-config.js:111–117  ·  view source on GitHub ↗

* Variation Name Setter * * @param variationIndex * @returns {ThemeConfig}

(variationIndex)

Source from the content-addressed store, hash-verified

109 * @returns {ThemeConfig}
110 */
111 setVariation(variationIndex) {
112 if (variationIndex !== this.variationIndex) {
113 this.variationIndex = variationIndex;
114 this.currentVariationSettings = null;
115 }
116 return this;
117 }
118
119 /**
120 * Get variation object by index

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected