You are here

function CourseObject::getCloneAbility in Course 3.x

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

... See full list

File

src/Entity/CourseObject.php, line 873

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

function getCloneAbility() {
  return FALSE;
}