You are here

public function OpignoActivity::setCreatedTime in Opigno module 8

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

Sets the Activity creation timestamp.

Parameters

int $timestamp: The Activity creation timestamp.

Return value

\Drupal\opigno_module\Entity\OpignoActivityInterface The called Activity entity.

Overrides OpignoActivityInterface::setCreatedTime

File

src/Entity/OpignoActivity.php, line 127

Class

OpignoActivity
Defines the Activity entity.

Namespace

Drupal\opigno_module\Entity

Code

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