public function Workspace::setCreatedTime in Drupal 9
Same name and namespace in other branches
- 8 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\EntityCode
public function setCreatedTime($created) {
return $this
->set('created', (int) $created);
}