I'm trying to query webform submissions based on a field value. The field is called "ticket_for". Somethings I tried and do not work:
->condition('ticket_for',$adnummer)
->condition('webform_submission_data:ticket_for',$adnummer,'CONTAINS')
...
What kind of condition should I be using in a query like this?
$query = \Drupal::entityQuery('webform_submission')
->condition('webform_id', 'ticket')
->condition('entity_id', $eventID)
->condition('webform_submission_data:ticket_for',$adnummer,'CONTAINS');