Score:0

How to get remote post handler returned response at module file?

us flag

I want to get remote post handler returned response inside hook_webform_handler_invoke_post_save_alter.

Please help me.

function hook_webform_handler_invoke_post_save_alter(\Drupal\webform\Plugin\WebformHandlerInterface $handler, array &$args) {
  $webform = $handler->getWebform();
  $webform_submission = $handler->getWebformSubmission();
  $webform_id = $webform->id();
  $handler_id = $handler->getHandlerId();
  if ($webform_id == 'webform_id' && $handler_id == 'handler_id') {
   // how to get here remote post returned response ??
  }

}
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.