CMS: Drupal 8.9.13
Webform module version: 8.x-5.17
Implementing webform submission insert hook on drupal 8 site, need help with function definition, i think i have problem with function parameters maybe?
here is what is have (per hook definition):
function cea_civicrm_webform_submission_insert($node, $submission) {
I am seeing error upon webform submission:
ArgumentCountError: Too few arguments to function cea_civicrm_webform_submission_insert(), 1 passed and exactly 2 expected in cea_civicrm_webform_submission_insert() (line 159 of /code/web/modules/custom/cea_civicrm/cea_civicrm.module)
Comments
Comment #2
hassan.farooq121 commentedComment #3
jrockowitz commentedYou are referencing a D7/Webform 4.x hook which is no longer supported. You will have to research and use a different hook.
Comment #4
jrockowitz commented