You are here

public function UserModuleStatus::setCreatedTime in Opigno module 8

Same name and namespace in other branches
  1. 3.x 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('created', $timestamp);
  return $this;
}