function CourseObject::isTemporary in Course 3.x
Same name and namespace in other branches
- 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::isTemporary()
- 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::isTemporary()
Checks the temporary status of a course object.
3 calls to CourseObject::isTemporary()
- CourseObject::getOptionsSummary in src/
Entity/ CourseObject.php - Get core options summary.
- CourseObjectNode::optionsForm in modules/
course_content/ src/ Course/ Object/ CourseObjectNode.php - Default options form for all course objects.
- CourseObjectNode::optionsValidate in modules/
course_content/ src/ Course/ Object/ CourseObjectNode.php - Validate the options form. Check the node type.
File
- src/
Entity/ CourseObject.php, line 918
Class
- CourseObject
- Parent abstract base class of all course objects.
Namespace
Drupal\course\EntityCode
function isTemporary() {
return strpos($this
->id(), 'course_object_') === 0;
}