public function CourseObject::getUrl in Course 8.2
Same name and namespace in other branches
- 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getUrl()
- 3.x src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getUrl()
Return the URL to the course object router.
Return value
File
- src/
Entity/ CourseObject.php, line 537
Class
- CourseObject
- Parent abstract base class of all course objects.
Namespace
Drupal\course\EntityCode
public function getUrl() {
return Url::fromRoute('course.object', [
'course' => $this
->getCourse()
->id(),
'course_object' => $this
->id(),
]);
}