public function HubspotWebformHandler::showWebformFields in HubSpot 8
Same name and namespace in other branches
- 3.x 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 233
Class
- HubspotWebformHandler
- Webform submission remote post handler.
Namespace
Drupal\hubspot\Plugin\WebformHandlerCode
public function showWebformFields(array $form, FormStateInterface $form_state) : array {
return $form['settings']['mapping']['field_group']['fields'];
}