function CourseObject::setId in Course 3.x
Same name and namespace in other branches
- 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::setId()
- 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::setId()
Set the internal course object ID.
Parameters
int $coid: ID of the course object.
1 call to CourseObject::setId()
- CourseObject::save in src/
Entity/ CourseObject.php - Apply configuration from session and let objects create their instances before saving the course object.
File
- src/
Entity/ CourseObject.php, line 773
Class
- CourseObject
- Parent abstract base class of all course objects.
Namespace
Drupal\course\EntityCode
function setId($coid) {
return $this
->setOption('coid', $coid);
}