You are here

function CourseObjectPoll::getCloneAbility in Course 3.x

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_poll/src/Plugin/course/CourseObject/CourseObjectPoll.php, line 111

Class

CourseObjectPoll
Plugin annotation @CourseObject( id = "poll", label = "Poll", handlers = { "fulfillment" = "\Drupal\course_poll\Plugin\course\CourseObject\CourseObjectPollFulfillment" } )

Namespace

Drupal\course_poll\Plugin\course\CourseObject

Code

function getCloneAbility() {
  return TRUE;
}