public function CourseObjectPoll::getEditUrl in Course 3.x
Get the URL to edit this course object, if any.
Return value
Overrides CourseObject::getEditUrl
File
- modules/
course_poll/ src/ Plugin/ course/ CourseObject/ CourseObjectPoll.php, line 115
Class
- CourseObjectPoll
- Plugin annotation @CourseObject( id = "poll", label = "Poll", handlers = { "fulfillment" = "\Drupal\course_poll\Plugin\course\CourseObject\CourseObjectPollFulfillment" } )
Namespace
Drupal\course_poll\Plugin\course\CourseObjectCode
public function getEditUrl() {
return Url::fromRoute('entity.poll.edit_form', [
'poll' => $this
->getInstanceId(),
]);
}