You are here

function CourseObject::getCloneAbility in Course 8.3

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

4 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.
CourseObjectNode::getCloneAbility in modules/course_content/src/Course/Object/CourseObjectNode.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.
CourseObjectWebform::getCloneAbility in modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebform.php
Returns an translated error message if this object has issues with cloning.

File

src/Entity/CourseObject.php, line 812

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

function getCloneAbility() {
  return FALSE;
}