public function Course::getUrl in Course 3.x
Same name and namespace in other branches
- 8.3 src/Entity/Course.php \Drupal\course\Entity\Course::getUrl()
- 8.2 src/Entity/Course.php \Drupal\course\Entity\Course::getUrl()
The Drupal path to take this course.
Return value
File
- src/
Entity/ Course.php, line 121
Class
- Course
- Defines the Course entity class.
Namespace
Drupal\course\EntityCode
public function getUrl() {
return Url::fromRoute('course.take', [
'course' => $this
->id(),
]);
}