function CourseObject::getCloneAbility in Course 3.x
Same name and namespace in other branches
- 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getCloneAbility()
- 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getCloneAbility()
Returns an translated error message if this object has issues with cloning.
Return value
mixed TRUE if cloning is supported, FALSE if cloning is not supported. A string if the object can clone but with caveats.
7 methods override CourseObject::getCloneAbility()
- CourseObjectCertificate::getCloneAbility in modules/
course_certificate/ src/ Plugin/ course/ CourseObject/ CourseObjectCertificate.php - Returns an translated error message if this object has issues with cloning.
- CourseObjectCommerce::getCloneAbility in modules/
course_commerce/ src/ Plugin/ course/ CourseObject/ CourseObjectCommerce.php - Returns an translated error message if this object has issues with cloning.
- CourseObjectNode::getCloneAbility in modules/
course_content/ src/ Course/ Object/ CourseObjectNode.php - Returns an translated error message if this object has issues with cloning.
- CourseObjectPoll::getCloneAbility in modules/
course_poll/ src/ Plugin/ course/ CourseObject/ CourseObjectPoll.php - Returns an translated error message if this object has issues with cloning.
- CourseObjectQuiz::getCloneAbility in modules/
course_quiz/ src/ Plugin/ course/ CourseObject/ CourseObjectQuiz.php - Returns an translated error message if this object has issues with cloning.
File
- src/
Entity/ CourseObject.php, line 873
Class
- CourseObject
- Parent abstract base class of all course objects.
Namespace
Drupal\course\EntityCode
function getCloneAbility() {
return FALSE;
}