You are here

function CourseObjectWebform::getCloneAbility in Course 8.2

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

File

modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebform.php, line 100

Class

CourseObjectWebform
Plugin annotation @CourseObject( id = "webform", label = "Webform", handlers = { "fulfillment" = "\Drupal\course_webform\Plugin\course\CourseObject\CourseObjectWebformFulfillment" } )

Namespace

Drupal\course_webform\Plugin\course\CourseObject

Code

function getCloneAbility() {
  return TRUE;
}