You are here

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

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

Sets the User module status creation timestamp.

Parameters

int $timestamp: The User module status creation timestamp.

Return value

\Drupal\opigno_module\Entity\UserModuleStatusInterface The called User module status entity.

Overrides UserModuleStatusInterface::setCreatedTime

File

src/Entity/UserModuleStatus.php, line 93

Class

UserModuleStatus
Defines the User module status entity.

Namespace

Drupal\opigno_module\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('started', $timestamp);
  return $this;
}