You are here

function CourseObjectFulfillment::delete in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::delete()

Do any sort of cleanup that the fulfillment needs. Example: deleting quiz results, webform submissions, etc.

Overrides EntityBase::delete

2 calls to CourseObjectFulfillment::delete()
CourseObjectQuizFulfillment::delete in modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuizFulfillment.php
Remove all quiz attempts associated with this fulfillment.
CourseObjectWebformFulfillment::delete in modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebformFulfillment.php
Remove all webform submissions associated with this fulfillment.
2 methods override CourseObjectFulfillment::delete()
CourseObjectQuizFulfillment::delete in modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuizFulfillment.php
Remove all quiz attempts associated with this fulfillment.
CourseObjectWebformFulfillment::delete in modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebformFulfillment.php
Remove all webform submissions associated with this fulfillment.

File

src/Entity/CourseObjectFulfillment.php, line 209

Class

CourseObjectFulfillment
Parent class for course object fulfillment. Unlike Course objects, this is not abstract and can be used when the fulfillment requirements are simple.

Namespace

Drupal\course\Entity

Code

function delete() {
}