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