function CourseObjectCommerce::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_commerce/ src/ Plugin/ course/ CourseObject/ CourseObjectCommerce.php, line 104
Class
- CourseObjectCommerce
- Plugin annotation @CourseObject( id = "commerce", label = "Payment", )
Namespace
Drupal\course_commerce\Plugin\course\CourseObjectCode
function getCloneAbility() {
return t('Payment objects will be created as a reference to the new course');
}