You are here

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

Same name and namespace in other branches
  1. 8 src/Entity/UserModuleStatus.php \Drupal\opigno_module\Entity\UserModuleStatus::getCreatedTime()

Gets the User module status creation timestamp.

Return value

int Creation timestamp of the User module status.

Overrides UserModuleStatusInterface::getCreatedTime

1 call to UserModuleStatus::getCreatedTime()
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 86

Class

UserModuleStatus
Defines the User module status entity.

Namespace

Drupal\opigno_module\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('started')->value;
}