src/api/entitlements.js
/**
   * Returns true if the current article is unlocked by a cacheable entitlement.
   * Metering entitlements aren't cacheable, because each metering entitlement
   * is meant to be used for one article. Subscription entitlements that are
   * not returned by dev mode are cacheable, because subscription entitlements
   * are meant to be used across multiple articles on a publication.
   * @return {boolean}
   */
Returns true if the current article is unlocked by a cacheable entitlement.
Metering entitlements aren't cacheable, because each metering entitlement
is meant to be used for one article. Subscription entitlements that are
not returned by dev mode are cacheable, because subscription entitlements
are meant to be used across multiple articles on a publication.
@return {boolean}
Returns true if the current article is unlocked by a cacheable entitlement . Metering entitlements aren ' t cacheable because each metering entitlement is meant to be used for one article . Subscription entitlements that are not returned by dev mode are cacheable because subscription entitlements are meant to be used across multiple articles on a publication . @return { boolean }
enablesThisWithCacheableEntitlements() {
    const entitlement = this.getEntitlementForThis();
    return (
      !!entitlement &&
      entitlement.source !== GOOGLE_METERING_SOURCE &&
      entitlement.subscriptionToken !== DEV_MODE_TOKEN
    );
  }
enablesThisWithCacheableEntitlements ( ) { const entitlement = this . getEntitlementForThis ( ) ; return ( ! ! entitlement && entitlement . source !== GOOGLE_METERING_SOURCE && entitlement . subscriptionToken !== DEV_MODE_TOKEN ) ; }
Returns true if the current article is unlocked by a cacheable entitlement.
Returns true if the current article is unlocked by a cacheable entitlement .