You are here

function CourseObjectNode::getCloneAbility in Course 8.2

Same name and namespace in other branches
  1. 8.3 modules/course_content/src/Course/Object/CourseObjectNode.php \Drupal\course_content\Course\Object\CourseObjectNode::getCloneAbility()
  2. 3.x 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 368

Class

CourseObjectNode
A course object that uses a node as a base.

Namespace

Drupal\course_content\Course\Object

Code

function getCloneAbility() {
  return t('%object will be cloned as a node. Results may vary.', array(
    '%object' => $this
      ->getTitle(),
  ));
}