function CourseObjectUbercart::getCloneAbility in Course 3.x
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.
Overrides CourseObject::getCloneAbility
File
- modules/
course_uc/ src/ Plugin/ course/ CourseObject/ CourseObjectUbercart.php, line 93
Class
- CourseObjectUbercart
- Plugin annotation @CourseObject( id = "ubercart", label = "Payment", )
Namespace
Drupal\course_uc\Plugin\course\CourseObjectCode
function getCloneAbility() {
return t('Payment objects will be created as a reference to the new course');
}