You are here

public function HubspotWebformHandler::showWebformFields in HubSpot 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/WebformHandler/HubspotWebformHandler.php \Drupal\hubspot\Plugin\WebformHandler\HubspotWebformHandler::showWebformFields()

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 525

Class

HubspotWebformHandler
Webform submission remote post handler.

Namespace

Drupal\hubspot\Plugin\WebformHandler

Code

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