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