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