You are here

public function Workspace::setCreatedTime in Multiversion 8

Sets the workspace creation timestamp.

Parameters

int $timestamp: The workspace creation timestamp.

Return value

\Drupal\multiversion\Entity\WorkspaceInterface The called workspace entity.

Overrides WorkspaceInterface::setCreatedTime

File

src/Entity/Workspace.php, line 183

Class

Workspace
The workspace entity class.

Namespace

Drupal\multiversion\Entity

Code

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