You are here

public function CourseObjectPoll::getTakeUrl in Course 3.x

Get the URL to take this course object, if any.

Outline handlers or subclasses should use getUrl().

Return value

Url

Overrides CourseObject::getTakeUrl

File

modules/course_poll/src/Plugin/course/CourseObject/CourseObjectPoll.php, line 123

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

public function getTakeUrl() {
  return $this
    ->getViewUrl();
}