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

Function getLabel

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

* @param {function(new: T)} messageType * @return {string} * @template T

(messageType)

Source from the content-addressed store, hash-verified

2722 * @template T
2723 */
2724function getLabel(messageType) {
2725 const message = /** @type {!Message} */ (new messageType());
2726 return message.label();
2727}
2728
2729/**
2730 * Copyright 2019 The Subscribe with Google Authors. All Rights Reserved.

Callers 2

DayButtonFunction · 0.85
onMethod · 0.85

Calls 1

labelMethod · 0.45

Tested by

no test coverage detected