Hubspot_Settings::set_properties()

Sets up the properties of the settings page


Source

File: src/integrations/hubspot/settings/settings-hubspot.php

	protected function set_properties() {

		$this->set_id( 'hubspot-api' );

		$this->set_icon( 'hubspot' );

		$this->set_name( 'Hubspot' );

		try {
			$this->client = $this->helpers->get_client();
			$this->is_connected = true;
		} catch ( \Exception $e ) {
			$this->client = false;
			$this->is_connected = false;
		}

		$this->set_status( false === $this->is_connected ? '' : 'success' );

	}