MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

third_party/subscriptions-project/swg.js:1738–1743  ·  view source on GitHub ↗

* @param {!Array<*>=} data * @param {boolean=} includesLabel

(data = [], includesLabel = true)

Source from the content-addressed store, hash-verified

1736 * @param {boolean=} includesLabel
1737 */
1738 constructor(data = [], includesLabel = true) {
1739 const base = includesLabel ? 1 : 0;
1740
1741 /** @private {?string} */
1742 this.urlPath_ = data[base] == null ? null : data[base];
1743 }
1744
1745 /**
1746 * @return {?string}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected