You are here

public function HubspotWebformHandler::addSubscription in HubSpot 3.x

AJAX callback for hubspot form change event.

Parameters

array $form: Active form array.

\Drupal\Core\Form\FormStateInterface $form_state: Active form state.

Return value

array Render array.

File

src/Plugin/WebformHandler/HubspotWebformHandler.php, line 555

Class

HubspotWebformHandler
Webform submission remote post handler.

Namespace

Drupal\hubspot\Plugin\WebformHandler

Code

public function addSubscription(array $form, FormStateInterface $form_state) : array {
  return $form['settings']['subscriptions']['mapping'];
}