You are here

public function Project::setCreatedTime in Drupal PM (Project Management) 4.x

Sets the Project creation timestamp.

Parameters

int $timestamp: The Project creation timestamp.

Return value

\Drupal\pm_project\Entity\ProjectInterface The called Project entity.

Overrides ProjectInterface::setCreatedTime

File

modules/pm_project/src/Entity/Project.php, line 141

Class

Project
Defines the Project entity.

Namespace

Drupal\pm_project\Entity

Code

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