You are here

function antibot_webform_admin_third_party_settings_form_alter in Webform 8.5

Same name and namespace in other branches
  1. 6.x third_party_settings/webform.antibot.inc \antibot_webform_admin_third_party_settings_form_alter()

Implements hook_webform_admin_third_party_settings_form_alter().

File

third_party_settings/webform.antibot.inc, line 89
Integrates third party settings on the Antibot module's behalf.

Code

function antibot_webform_admin_third_party_settings_form_alter(&$form, FormStateInterface $form_state) {

  /** @var \Drupal\webform\WebformThirdPartySettingsManagerInterface $third_party_settings_manager */
  $third_party_settings_manager = \Drupal::service('webform.third_party_settings_manager');
  $antibot = $third_party_settings_manager
    ->getThirdPartySetting('antibot', 'antibot');
  $antibot_state = WEBFORM_ANTIBOT_NEUTRAL;
  _webform_antibot_form($form, $form_state, $antibot, $antibot_state, t('all webforms'));
}