public function Hubspot::isConfigured in HubSpot 8
Check if hubspot is configured.
When hubspot is configured, the refresh token will be set.
Return value
bool True if the OAuth Refresh token is set. False, otherwise.
File
- src/
Hubspot.php, line 125
Class
- Hubspot
- Define a service for interacting with the HubSpot CRM.
Namespace
Drupal\hubspotCode
public function isConfigured() : bool {
return !empty($this->state
->get('hubspot.hubspot_refresh_token'));
}