You are here

public function Workspace::setCreatedTime in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/Entity/Workspace.php \Drupal\workspaces\Entity\Workspace::setCreatedTime()
  2. 9 core/modules/workspaces/src/Entity/Workspace.php \Drupal\workspaces\Entity\Workspace::setCreatedTime()

Sets the workspace creation timestamp.

Parameters

int $timestamp: The workspace creation timestamp.

Return value

$this

Overrides WorkspaceInterface::setCreatedTime

File

core/modules/workspaces/src/Entity/Workspace.php, line 143

Class

Workspace
The workspace entity class.

Namespace

Drupal\workspaces\Entity

Code

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