You are here

public function UserModuleStatus::isFinished in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Entity/UserModuleStatus.php \Drupal\opigno_module\Entity\UserModuleStatus::isFinished()
1 call to UserModuleStatus::isFinished()
UserModuleStatus::getCompletionTime in src/Entity/UserModuleStatus.php
Get the time (in seconds) that the user spent to complete the module.

File

src/Entity/UserModuleStatus.php, line 229

Class

UserModuleStatus
Defines the User module status entity.

Namespace

Drupal\opigno_module\Entity

Code

public function isFinished() {
  return (bool) $this->finished->value != 0;
}