You are here

function CourseObject::setId in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::setId()
  2. 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\Entity

Code

function setId($coid) {
  return $this
    ->setOption('coid', $coid);
}