public function LatestActivity::getModuleId in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Entity/LatestActivity.php \Drupal\opigno_learning_path\Entity\LatestActivity::getModuleId()
Gets the module ID.
Return value
int The module ID.
Overrides LatestActivityInterface::getModuleId
File
- src/
Entity/ LatestActivity.php, line 109
Class
- LatestActivity
- Defines the Latest Activity entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function getModuleId() {
return $this
->get('module')->target_id;
}