public function Workspace::setCreatedTime in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/src/Entity/Workspace.php \Drupal\workspaces\Entity\Workspace::setCreatedTime()
- 10 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 151
Class
- Workspace
- The workspace entity class.
Namespace
Drupal\workspaces\EntityCode
public function setCreatedTime($created) {
return $this
->set('created', (int) $created);
}