You are here

public function LPStatus::isFinished in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::isFinished()

Checks if the training finished.

Return value

\Drupal\opigno_learning_path\LatestActivityInterface Boolean, true if the training was finished, false otherwise.

Overrides LPStatusInterface::isFinished

File

src/Entity/LPStatus.php, line 175

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

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