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