function CourseObjectNode::getCloneAbility in Course 3.x
Same name and namespace in other branches
- 8.3 modules/course_content/src/Course/Object/CourseObjectNode.php \Drupal\course_content\Course\Object\CourseObjectNode::getCloneAbility()
- 8.2 modules/course_content/src/Course/Object/CourseObjectNode.php \Drupal\course_content\Course\Object\CourseObjectNode::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.
Overrides CourseObject::getCloneAbility
1 method overrides CourseObjectNode::getCloneAbility()
- CourseObjectBook::getCloneAbility in modules/
course_book/ src/ Plugin/ course/ CourseObject/ CourseObjectBook.php - Returns an translated error message if this object has issues with cloning.
File
- modules/
course_content/ src/ Course/ Object/ CourseObjectNode.php, line 374
Class
- CourseObjectNode
- A course object that uses a node as a base.
Namespace
Drupal\course_content\Course\ObjectCode
function getCloneAbility() {
return t('%object will be cloned as a node. Results may vary.', array(
'%object' => $this
->getTitle(),
));
}