You are here

interface WebformCivicrmPostProcessInterface in Webform CiviCRM Integration 8.5

Hierarchy

Expanded class hierarchy of WebformCivicrmPostProcessInterface

All classes that implement WebformCivicrmPostProcessInterface

File

src/WebformCivicrmPostProcessInterface.php, line 15
Front-end form validation and post-processing.

Namespace

Drupal\webform_civicrm
View source
interface WebformCivicrmPostProcessInterface {
  function initialize(WebformInterface $webform);

  /**
   * Called after a webform is submitted
   * Or, for a multipage form, called after each page
   * @param array $form
   * @param array $form_state (reference)
   */
  public function validate($form, FormStateInterface $form_state, WebformSubmissionInterface $webform_submission);

  /**
   * Process webform submission when it is about to be saved. Called by the following hook:
   *
   * @see webform_civicrm_webform_submission_presave
   *
   * @param \Drupal\webform\WebformSubmissionInterface $webform_submission
   */
  public function preSave(WebformSubmissionInterface $webform_submission);

  /**
   * Process webform submission after it is has been saved. Called by the following hooks:
   * @see webform_civicrm_webform_submission_insert
   * @see webform_civicrm_webform_submission_update
   * @param stdClass $submission
   */
  public function postSave(WebformSubmissionInterface $webform_submission);

}

Members

Namesort descending Modifiers Type Description Overrides
WebformCivicrmPostProcessInterface::initialize function 1
WebformCivicrmPostProcessInterface::postSave public function Process webform submission after it is has been saved. Called by the following hooks: 1
WebformCivicrmPostProcessInterface::preSave public function Process webform submission when it is about to be saved. Called by the following hook: 1
WebformCivicrmPostProcessInterface::validate public function Called after a webform is submitted Or, for a multipage form, called after each page 1