function _hubspot_get_forms in HubSpot 8
Same name and namespace in other branches
- 3.x hubspot.module \_hubspot_get_forms()
Gets the list of forms from HubSpot via the API.
Upon failure, it will attempt to reauthenticate.
File
- ./
hubspot.module, line 72 - Sends Webform results to HubSpot's Forms API.
Code
function _hubspot_get_forms() {
return \Drupal::service('hubspot.hubspot')
->getHubspotForms();
}