You are here

public function LPStatus::setStatus 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::setStatus()

Sets the training status.

Parameters

string $status: Training status.

Return value

\Drupal\opigno_learning_path\LatestActivityInterface The called entity.

Overrides LPStatusInterface::setStatus

File

src/Entity/LPStatus.php, line 131

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function setStatus($status) {
  $this
    ->set('status', $status);
  return $this;
}