function CourseObjectWebformFulfillment::delete in Course 3.x
Same name and namespace in other branches
- 8.3 modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebformFulfillment.php \Drupal\course_webform\Plugin\course\CourseObject\CourseObjectWebformFulfillment::delete()
- 8.2 modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebformFulfillment.php \Drupal\course_webform\Plugin\course\CourseObject\CourseObjectWebformFulfillment::delete()
Remove all webform submissions associated with this fulfillment.
Overrides EntityBase::delete
File
- modules/
course_webform/ src/ Plugin/ course/ CourseObject/ CourseObjectWebformFulfillment.php, line 23
Class
- CourseObjectWebformFulfillment
- Course fulfillment class for webforms.
Namespace
Drupal\course_webform\Plugin\course\CourseObjectCode
function delete() {
if ($ids = $this
->getOption('sids')) {
foreach (WebformSubmission::loadMultiple($ids) as $submission) {
$submission
->delete();
}
}
parent::delete();
}