public function Course::getPrev in Course 3.x
Same name and namespace in other branches
- 8.3 src/Entity/Course.php \Drupal\course\Entity\Course::getPrev()
- 8.2 src/Entity/Course.php \Drupal\course\Entity\Course::getPrev()
Get the previous course object, from the active course object.
Return value
1 call to Course::getPrev()
- Course::getNavigation in src/
Entity/ Course.php - Generate navigation links.
File
- src/
Entity/ Course.php, line 193
Class
- Course
- Defines the Course entity class.
Namespace
Drupal\course\EntityCode
public function getPrev() {
if (!$this->active) {
$this
->setActive();
}
return $this->prev;
}