You are here

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

Sets the Organization creation timestamp.

Parameters

int $timestamp: The Organization creation timestamp.

Return value

\Drupal\pm_organization\Entity\OrganizationInterface The called Organization entity.

Overrides OrganizationInterface::setCreatedTime

File

modules/pm_organization/src/Entity/Organization.php, line 142

Class

Organization
Defines the Organization entity.

Namespace

Drupal\pm_organization\Entity

Code

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