You are here

public function UserModuleStatus::setCurrentActivity in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/UserModuleStatus.php \Drupal\opigno_module\Entity\UserModuleStatus::setCurrentActivity()
1 call to UserModuleStatus::setCurrentActivity()
UserModuleStatus::finishAttempt in src/Entity/UserModuleStatus.php
Finish user attempt.

File

src/Entity/UserModuleStatus.php, line 191

Class

UserModuleStatus
Defines the User module status entity.

Namespace

Drupal\opigno_module\Entity

Code

public function setCurrentActivity(OpignoActivityInterface $activity = NULL) {
  $this
    ->set('current_activity', $activity);
  return $this;
}