You are here

public function CourseObjectFulfillment::getEntityType in Course 3.x

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

Map this object base to the base entity class.

Overrides RevisionLogEntityTrait::getEntityType

File

src/Entity/CourseObjectFulfillment.php, line 234

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

public function getEntityType() {
  $entityType = parent::getEntityType();
  $class = get_class($this);
  $entityType
    ->set('originalClass', $class);
  return $entityType;
}