protected function CourseObjectFulfillmentStorage::doCreate in Course 3.x
Same name and namespace in other branches
- 8.3 src/Storage/CourseObjectFulfillmentStorage.php \Drupal\course\Storage\CourseObjectFulfillmentStorage::doCreate()
- 8.2 src/Storage/CourseObjectFulfillmentStorage.php \Drupal\course\Storage\CourseObjectFulfillmentStorage::doCreate()
Performs storage-specific creation of entities.
Parameters
array $values: An array of values to set, keyed by property name.
Return value
\Drupal\Core\Entity\EntityInterface
Overrides ContentEntityStorageBase::doCreate
File
- src/
Storage/ CourseObjectFulfillmentStorage.php, line 11
Class
Namespace
Drupal\course\StorageCode
protected function doCreate(array $values) {
$available = course_get_handlers('object');
$ret = $available[$values['object_type']];
$this->entityClass = $ret['handlers']['fulfillment'] ?? 'Drupal\\course\\Entity\\CourseObjectFulfillment';
return parent::doCreate($values);
}