code: function generateAssociatedDomainsContent(pluginPreferences) {
    var domainsList = [];
  
    // generate list of host links
    pluginPreferences.hosts.forEach(function(host) {
      var link = domainsListEntryForHost(host);
      if (domainsList.indexOf(link) == -1) {
        domainsList.push(link);
      }
    });
  
    return domainsList;
  }
docs: Generate content for associated-domains dictionary in the entitlements file.
  
  @param {Object} pluginPreferences - list of hosts from conig.xml
  @return {Object} associated-domains dictionary content